Mesa (master): gallium/cso: set NULL shaders at context destruction
Marek Olšák
mareko at kemper.freedesktop.org
Sat May 16 13:17:59 UTC 2015
Module: Mesa
Branch: master
Commit: ed1b273ffcab0e2089899f3be7e31b2bc49f7ef3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed1b273ffcab0e2089899f3be7e31b2bc49f7ef3
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Sep 23 15:54:02 2014 +0200
gallium/cso: set NULL shaders at context destruction
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/auxiliary/cso_cache/cso_context.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index b352909..59bad2c 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -327,6 +327,13 @@ void cso_destroy_context( struct cso_context *ctx )
ctx->pipe->bind_depth_stencil_alpha_state( ctx->pipe, NULL );
ctx->pipe->bind_fs_state( ctx->pipe, NULL );
ctx->pipe->bind_vs_state( ctx->pipe, NULL );
+ if (ctx->has_geometry_shader) {
+ ctx->pipe->bind_gs_state(ctx->pipe, NULL);
+ }
+ if (ctx->has_tessellation) {
+ ctx->pipe->bind_tcs_state(ctx->pipe, NULL);
+ ctx->pipe->bind_tes_state(ctx->pipe, NULL);
+ }
ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL );
if (ctx->has_streamout)
More information about the mesa-commit
mailing list