summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-04-24 12:10:14 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-04-24 12:15:05 -0600
commit386102c62a3315182ffbc6319351cb883234511a (patch)
tree9a41e64d17f7741dabb2b7444cfc114fe003ab68 /src/gallium
parenta41804909d5799cddfbf48a46524f78c736408d4 (diff)
gallium: make cso_release_all() public
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.c4
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index 8cf2313b7f..b4609e999b 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -106,7 +106,7 @@ out:
/**
* Prior to context destruction, this function unbinds all state objects.
*/
-static void cso_release_all( struct cso_context *ctx )
+void cso_release_all( struct cso_context *ctx )
{
unsigned i;
@@ -134,7 +134,7 @@ static void cso_release_all( struct cso_context *ctx )
void cso_destroy_context( struct cso_context *ctx )
{
if (ctx) {
- cso_release_all( ctx );
+ //cso_release_all( ctx );
FREE( ctx );
}
}
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h
index cb46f71d51..b04e98bfa1 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.h
+++ b/src/gallium/auxiliary/cso_cache/cso_context.h
@@ -42,6 +42,8 @@ struct cso_context;
struct cso_context *cso_create_context( struct pipe_context *pipe );
+void cso_release_all( struct cso_context *ctx );
+
void cso_destroy_context( struct cso_context *cso );