Mesa (master): gallium/cso: unbind sampler views in cso_release_all()

Brian Paul brianp at kemper.freedesktop.org
Thu Jul 1 19:09:31 UTC 2010


Module: Mesa
Branch: master
Commit: 1d298a3764cef6a7119524fdc8f3c0d2589d6070
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1d298a3764cef6a7119524fdc8f3c0d2589d6070

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jul  1 11:43:18 2010 -0600

gallium/cso: unbind sampler views in cso_release_all()

---

 src/gallium/auxiliary/cso_cache/cso_context.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index 20a8612..2a85fe3 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -289,6 +289,8 @@ void cso_release_all( struct cso_context *ctx )
       ctx->pipe->bind_fs_state( ctx->pipe, NULL );
       ctx->pipe->bind_vs_state( ctx->pipe, NULL );
       ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL );
+      ctx->pipe->set_fragment_sampler_views(ctx->pipe, 0, NULL);
+      ctx->pipe->set_vertex_sampler_views(ctx->pipe, 0, NULL);
    }
 
    for (i = 0; i < PIPE_MAX_SAMPLERS; i++) {




More information about the mesa-commit mailing list