From: Eric Anholt Date: Mon, 2 Oct 2017 19:05:30 +0000 (-0700) Subject: broadcom/vc5: Fix setup of TF dword output count. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28105560f778c4b7718349d3719cc96e15092f2b;p=mesa.git broadcom/vc5: Fix setup of TF dword output count. I missed the "- 1" when reading the spec. --- diff --git a/src/broadcom/cle/v3d_packet_v33.xml b/src/broadcom/cle/v3d_packet_v33.xml index bbfe0a991db..06ca0365ef3 100644 --- a/src/broadcom/cle/v3d_packet_v33.xml +++ b/src/broadcom/cle/v3d_packet_v33.xml @@ -255,7 +255,7 @@ - + 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,