summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/cso_cache
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-06-08 05:26:02 -0700
committerJosé Fonseca <jfonseca@vmware.com>2014-06-12 13:23:56 +0100
commit33f273778b8c864f52d1b1096a49f053490bf8ca (patch)
treef763a851bc4fc01ef3dd8aad0343b16563915c00 /src/gallium/auxiliary/cso_cache
parent765efeef883cdbb86e052acd887e0c3c0e39b732 (diff)
downloadexternal_mesa3d-33f273778b8c864f52d1b1096a49f053490bf8ca.zip
external_mesa3d-33f273778b8c864f52d1b1096a49f053490bf8ca.tar.gz
external_mesa3d-33f273778b8c864f52d1b1096a49f053490bf8ca.tar.bz2
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@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/cso_cache')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_context.c2
1 files changed, 1 insertions, 1 deletions
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);
}