From cefaa5044006d10367acb004068e2c3ebdad697e Mon Sep 17 00:00:00 2001 From: Aitor Camacho Date: Fri, 5 Dec 2025 02:12:26 +0900 Subject: [PATCH] wsi/metal: Fix blit_imate_to_image's pool selection for cmd buffer alloc Fixes: 39a7d65113c ("wsi/metal: Backend addition for drivers built on top of Metal") Reviewed-by: Yiwei Zhang Signed-off-by: Aitor Camacho Part-of: (cherry picked from commit 273f668520fe166cbda8765deb9403b4abf4abdd) --- .pick_status.json | 2 +- src/vulkan/wsi/wsi_common_metal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 1d33de9690a..fe38c0a6ffb 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -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 diff --git a/src/vulkan/wsi/wsi_common_metal.c b/src/vulkan/wsi/wsi_common_metal.c index 34431384e48..6d6de39c83a 100644 --- a/src/vulkan/wsi/wsi_common_metal.c +++ b/src/vulkan/wsi/wsi_common_metal.c @@ -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, };