From: Samuel Pitoiset Date: Tue, 5 Mar 2019 17:09:12 +0000 (+0100) Subject: radv: fix binding transform feedback buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fa61273a8c8809a9ca0a1473b5e361aa5715ae0;p=mesa.git radv: fix binding transform feedback buffers The mask should be accumulated if two calls are used for binding two buffers at different indexes. Otherwise, the driver only accounts for the last one. Noticed while glancing at this code. Cc: 18.3 19.0 Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index ae8f50d0348..fdf3024147d 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -4993,7 +4993,7 @@ void radv_CmdBindTransformFeedbackBuffersEXT( enabled_mask |= 1 << idx; } - cmd_buffer->state.streamout.enabled_mask = enabled_mask; + cmd_buffer->state.streamout.enabled_mask |= enabled_mask; cmd_buffer->state.dirty |= RADV_CMD_DIRTY_STREAMOUT_BUFFER; }