venus: fix the cmd stride used for qfb recording

Not a real issue since the dispatchable handle size is the same.

Fixes: d2a626787e ("venus: track/recycle appended query feedback cmds")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27649>
(cherry picked from commit 55224006b7)
This commit is contained in:
Yiwei Zhang 2024-02-14 17:17:39 -08:00 committed by Eric Engestrom
parent be7a46c3c5
commit 3ba68813f2
2 changed files with 2 additions and 2 deletions

View file

@ -2854,7 +2854,7 @@
"description": "venus: fix the cmd stride used for qfb recording",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d2a626787e559dad9105243be9e5043c9230853c",
"notes": null

View file

@ -600,7 +600,7 @@ vn_queue_submission_add_query_feedback(struct vn_queue_submission *submit,
VkCommandBuffer *feedback_cmd_handle =
vn_get_feedback_cmd_handle(submit, feedback_cmds, cmd_count);
const uint32_t stride = submit->batch_type == VK_STRUCTURE_TYPE_SUBMIT_INFO
? sizeof(VkCommandBuffer *)
? sizeof(VkCommandBuffer)
: sizeof(VkCommandBufferSubmitInfo);
struct vn_feedback_cmd_pool *feedback_cmd_pool = NULL;