wsi/metal: Fix blit_imate_to_image's pool selection for cmd buffer alloc

Fixes: 39a7d65113 ("wsi/metal: Backend addition for drivers built on top of Metal")

Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Signed-off-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38785>
(cherry picked from commit 273f668520)
This commit is contained in:
Aitor Camacho 2025-12-05 02:12:26 +09:00 committed by Dylan Baker
parent 34af07e695
commit cefaa50440
2 changed files with 2 additions and 2 deletions

View file

@ -584,7 +584,7 @@
"description": "wsi/metal: Fix blit_imate_to_image's pool selection for cmd buffer alloc",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "39a7d65113c6df7d1da6e88b16fab0686db6fc83",
"notes": null

View file

@ -329,7 +329,7 @@ wsi_cmd_blit_image_to_image(const struct wsi_swapchain *chain,
const VkCommandBufferAllocateInfo cmd_buffer_info = {
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO,
.pNext = NULL,
.commandPool = chain->cmd_pools[0],
.commandPool = chain->cmd_pools[i],
.level = VK_COMMAND_BUFFER_LEVEL_PRIMARY,
.commandBufferCount = 1,
};