Module: Mesa Branch: master Commit: 1214c2ea2a200e9d2ff814a7b106d2314a03f048 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1214c2ea2a200e9d2ff814a7b106d2314a03f048
Author: Eric Anholt <[email protected]> Date: Tue Nov 21 15:20:31 2017 -0800 broadcom/vc5: Fix incorrect padding of TF outputs. After the first output, we were padding by an extra size of the previous output. Fixes piglit ext_transform_feedback-output-type mat4x3[2] and friends. --- src/gallium/drivers/vc5/vc5_program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/vc5/vc5_program.c b/src/gallium/drivers/vc5/vc5_program.c index cf2d1b830b..a356d0645d 100644 --- a/src/gallium/drivers/vc5/vc5_program.c +++ b/src/gallium/drivers/vc5/vc5_program.c @@ -79,6 +79,7 @@ vc5_set_transform_feedback_outputs(struct vc5_uncompiled_shader *so, slots[slot_count] = v3d_slot_from_slot_and_component(VARYING_SLOT_POS, 0); slot_count++; + buffer_offset++; } /* Set the coordinate shader up to output the @@ -92,6 +93,7 @@ vc5_set_transform_feedback_outputs(struct vc5_uncompiled_shader *so, v3d_slot_from_slot_and_component(slot, output->start_component + j); slot_count++; + buffer_offset++; } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
