broadcom/vc5: Fix setup of TF dword output count.

I missed the "- 1" when reading the spec.
This commit is contained in:
Eric Anholt
2017-10-02 12:05:30 -07:00
parent 3ac8a2a4ba
commit 28105560f7
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@
<struct name="Transform Feedback Output Data Spec">
<field name="First Shaded Vertex Value to output" size="8" start="0" type="uint"/>
<field name="Number of consecutive Vertex Values to output as 32-bit values" size="4" start="8" type="uint"/>
<field name="Number of consecutive Vertex Values to output as 32-bit values minus 1" size="4" start="8" type="uint"/>
<field name="Output Buffer to write to" size="2" start="12" type="uint"/>
</struct>

View File

@@ -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,