[Mesa-dev] [PATCH] r600g: fix outputing to non-0 buffers for stream 0.

Dave Airlie airlied at gmail.com
Thu Dec 3 20:25:52 PST 2015


From: Dave Airlie <airlied at redhat.com>

This fixes:
arb_transform_feedback3-ext_interleaved_two_bufs_gs
arb_transform_feedback3-ext_interleaved_two_bufs_gs_max
transform-feedback-builtins
---
 src/gallium/drivers/r600/r600_shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 4142c3e..19eed06 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -1399,7 +1399,7 @@ static int emit_streamout(struct r600_shader_ctx *ctx, struct pipe_stream_output
 	for (i = 0; i < so->num_outputs; i++) {
 		struct r600_bytecode_output output;
 
-		if (stream != -1 && stream != so->output[i].output_buffer)
+		if (stream != -1 && stream != 0 && stream != so->output[i].output_buffer)
 			continue;
 
 		memset(&output, 0, sizeof(struct r600_bytecode_output));
-- 
2.5.0



More information about the mesa-dev mailing list