Mesa (master): cso: fix stream-out clean up in cso_release_all()
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Jun 12 12:27:41 UTC 2014
Module: Mesa
Branch: master
Commit: 33f273778b8c864f52d1b1096a49f053490bf8ca
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=33f273778b8c864f52d1b1096a49f053490bf8ca
Author: Brian Paul <brianp at vmware.com>
Date: Sun Jun 8 05:26:02 2014 -0700
cso: fix stream-out clean up in cso_release_all()
Use the has_streamout flag as we do elsewhere to check if we need
to call pipe->set_stream_output_targets(). The driver might implement
the set_stream_output_targets() function, but not for all hardware
configurations.
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/cso_cache/cso_context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c
index 47c40a5..ca91b67 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.c
+++ b/src/gallium/auxiliary/cso_cache/cso_context.c
@@ -332,7 +332,7 @@ void cso_release_all( struct cso_context *ctx )
ctx->pipe->bind_vs_state( ctx->pipe, NULL );
ctx->pipe->bind_vertex_elements_state( ctx->pipe, NULL );
- if (ctx->pipe->set_stream_output_targets)
+ if (ctx->has_streamout)
ctx->pipe->set_stream_output_targets(ctx->pipe, 0, NULL, NULL);
}
More information about the mesa-commit
mailing list