zink: Change zink_vertex_elements_hw_state::b.strides to VkDeviceSize
Currently zink_vertex_elements_hw_state::b.strides is an array of 32-bit
unsigned values, while CmdBindVertexBuffers2EXT expects an array of
VkDeviceSize (64-bit unsigned). Instead of converting them for a call,
just change the type of the array itself.
Fixes: 76725452 ("gallium: move vertex stride to CSO")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9765
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25208>
This commit is contained in:
committed by
Marge Bot
parent
9399165bd4
commit
d09aac5e64
@@ -170,7 +170,7 @@ zink_bind_vertex_buffers(struct zink_batch *batch, struct zink_context *ctx)
|
||||
if (elems->hw_state.num_bindings)
|
||||
VKCTX(CmdBindVertexBuffers2EXT)(batch->state->cmdbuf, 0,
|
||||
elems->hw_state.num_bindings,
|
||||
buffers, buffer_offsets, NULL, (VkDeviceSize*)elems->hw_state.b.strides);
|
||||
buffers, buffer_offsets, NULL, elems->hw_state.b.strides);
|
||||
} else if (elems->hw_state.num_bindings)
|
||||
VKSCR(CmdBindVertexBuffers)(batch->state->cmdbuf, 0,
|
||||
elems->hw_state.num_bindings,
|
||||
|
||||
@@ -302,7 +302,7 @@ struct zink_vertex_elements_hw_state {
|
||||
struct {
|
||||
VkVertexInputBindingDivisorDescriptionEXT divisors[PIPE_MAX_ATTRIBS];
|
||||
VkVertexInputBindingDescription bindings[PIPE_MAX_ATTRIBS]; // combination of element_state and stride
|
||||
unsigned strides[PIPE_MAX_ATTRIBS];
|
||||
VkDeviceSize strides[PIPE_MAX_ATTRIBS];
|
||||
uint8_t divisors_present;
|
||||
} b;
|
||||
VkVertexInputBindingDescription2EXT dynbindings[PIPE_MAX_ATTRIBS];
|
||||
|
||||
Reference in New Issue
Block a user