radv: don't update misaligned_mask in CmdBindVertexBuffers2
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 13 Jul 2022 15:43:44 +0000 (16:43 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 19 Jul 2022 20:40:20 +0000 (20:40 +0000)
commit0fb3aa005f8a1c52a6e33001a94455181b673f33
tree4237f79074efe88b8e7c4c918744e2a605bc253a
parent1d019d2ab772ad72f4d3665e60f26de83f5cf29c
radv: don't update misaligned_mask in CmdBindVertexBuffers2

This can't do it in the loop because it doesn't easily know what
attributes use a binding.

We could do it in a separate loop, but there's no point, especially since
zink does CmdSetVertexInputEXT() after CmdBindVertexBuffers2().

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fixes: c335a4d70ed ("radv: dynamically calculate misaligned_mask for dynamic vertex input")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17521>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_shader.h