diff options
author | Samuel Pitoiset <[email protected]> | 2019-03-05 18:09:12 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-03-20 09:06:40 +0100 |
commit | 4fa61273a8c8809a9ca0a1473b5e361aa5715ae0 (patch) | |
tree | 6448586a9efc9a85a765859536807497fac20479 /src/amd/vulkan | |
parent | f4f0e3a3954ae2bfb545dea37b8967c3d7ce1909 (diff) |
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 <[email protected]>
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |