Revert "r600g: try to fix streamout for the cases where BURST_COUNT > 0"
authorAndreas Boll <andreas.boll.dev@gmail.com>
Fri, 18 Jan 2013 11:46:52 +0000 (12:46 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:29 +0000 (15:08 +0100)
This reverts commit 42f71b4861b9d01a8f925fea3182fc1a292222f3.

Fixes the following piglit regressions on my rv770

./bin/ext_transform_feedback-output-type float[2] -auto -fbo
./bin/ext_transform_feedback-output-type float[2]-no-subscript -auto -fbo
./bin/ext_transform_feedback-output-type int[2] -auto -fbo
./bin/ext_transform_feedback-output-type int[2]-no-subscript -auto -fbo
./bin/ext_transform_feedback-output-type uint[2] -auto -fbo
./bin/ext_transform_feedback-output-type uint[2]-no-subscript -auto -fbo

src/gallium/drivers/r600/r600_shader.c

index 75144a6..e64f624 100644 (file)
@@ -1482,7 +1482,7 @@ static int r600_shader_from_tgsi(struct r600_context * rctx, struct r600_pipe_sh
 
                        memset(&output, 0, sizeof(struct r600_bytecode_output));
                        output.gpr = shader->output[so.output[i].register_index].gpr;
-                       output.elem_size = so.output[i].num_components;
+                       output.elem_size = 0;
                        output.array_base = so.output[i].dst_offset - so.output[i].start_component;
                        output.type = V_SQ_CF_ALLOC_EXPORT_WORD0_SQ_EXPORT_WRITE;
                        output.burst_count = 1;