mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
vulkan/cmd_queue: Fixup stride for multi draws
Copying the draw infos packs them so the stride needs to be set to the
struct size.
cc: mesa-stable
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
(cherry picked from commit be5ab80de1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40092>
This commit is contained in:
parent
45ce75f3bc
commit
3ffe4b257b
2 changed files with 3 additions and 3 deletions
|
|
@ -4414,7 +4414,7 @@
|
|||
"description": "vulkan/cmd_queue: Fixup stride for multi draws",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -305,7 +305,7 @@ vk_cmd_enqueue_CmdDrawMultiEXT(VkCommandBuffer commandBuffer,
|
|||
}
|
||||
cmd->u.draw_multi_ext.instance_count = instanceCount;
|
||||
cmd->u.draw_multi_ext.first_instance = firstInstance;
|
||||
cmd->u.draw_multi_ext.stride = stride;
|
||||
cmd->u.draw_multi_ext.stride = sizeof(*cmd->u.draw_multi_ext.vertex_info);
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
|
|
@ -347,7 +347,7 @@ vk_cmd_enqueue_CmdDrawMultiIndexedEXT(VkCommandBuffer commandBuffer,
|
|||
|
||||
cmd->u.draw_multi_indexed_ext.instance_count = instanceCount;
|
||||
cmd->u.draw_multi_indexed_ext.first_instance = firstInstance;
|
||||
cmd->u.draw_multi_indexed_ext.stride = stride;
|
||||
cmd->u.draw_multi_indexed_ext.stride = sizeof(*cmd->u.draw_multi_indexed_ext.index_info);
|
||||
|
||||
if (pVertexOffset) {
|
||||
cmd->u.draw_multi_indexed_ext.vertex_offset =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue