summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-02 12:05:30 -0700
committerEric Anholt <[email protected]>2017-10-10 11:42:05 -0700
commit28105560f778c4b7718349d3719cc96e15092f2b (patch)
tree445d6b0f0ed69b1346deed0a148b635d1cfa0d1b /src/gallium
parent3ac8a2a4ba0346ec2d23078ec0d6b10e74609274 (diff)
broadcom/vc5: Fix setup of TF dword output count.
I missed the "- 1" when reading the spec.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc5/vc5_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_program.c b/src/gallium/drivers/vc5/vc5_program.c
index 107c9c05335..d3b3d1bee70 100644
--- a/src/gallium/drivers/vc5/vc5_program.c
+++ b/src/gallium/drivers/vc5/vc5_program.c
@@ -87,7 +87,7 @@ vc5_set_transform_feedback_outputs(struct vc5_uncompiled_shader *so,
struct V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC unpacked = {
.first_shaded_vertex_value_to_output = vpm_start,
- .number_of_consecutive_vertex_values_to_output_as_32_bit_values = vpm_size,
+ .number_of_consecutive_vertex_values_to_output_as_32_bit_values_minus_1 = vpm_size - 1,
.output_buffer_to_write_to = buffer,
};
V3D33_TRANSFORM_FEEDBACK_OUTPUT_DATA_SPEC_pack(NULL,