radv: constify radv_vertex_binding in CmdSetVertexInputEXT()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13857>
This commit is contained in:
Samuel Pitoiset 2021-11-18 11:19:43 +01:00 committed by Marge Bot
parent 45f181c482
commit b83caef6d2

View file

@ -5618,7 +5618,7 @@ radv_CmdSetVertexInputEXT(VkCommandBuffer commandBuffer, uint32_t vertexBindingD
state->format_sizes[loc] = format_desc->block.bits / 8u;
if (chip == GFX6 || chip >= GFX10) {
struct radv_vertex_binding *vb = cmd_buffer->vertex_bindings;
const struct radv_vertex_binding *vb = cmd_buffer->vertex_bindings;
unsigned bit = 1u << loc;
if (binding->stride & format_align_req_minus_1) {
state->misaligned_mask |= bit;