nvk: fix BindImageMemory2 per-bind status result

The per-bind status was always being set to VK_SUCCESS instead of the
actual result from nvk_bind_image_memory.

Fixes: 93792b5ef2 ("nvk: Add static wrappers for image/buffer binding")
Reviewed-by: Mel Henning <mhenning@darkrefraction.com>
(cherry picked from commit dd3e153a10)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
juntak0916 2026-03-23 12:06:01 -05:00 committed by Eric Engestrom
parent e2e2dc6bf7
commit f8d492ccc3
2 changed files with 2 additions and 2 deletions

View file

@ -2724,7 +2724,7 @@
"description": "nvk: fix BindImageMemory2 per-bind status result",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "93792b5ef2ae0919298409b87a54a16fb38ffafb",
"notes": null

View file

@ -1650,7 +1650,7 @@ nvk_BindImageMemory2(VkDevice device,
const VkBindMemoryStatusKHR *status =
vk_find_struct_const(pBindInfos[i].pNext, BIND_MEMORY_STATUS_KHR);
if (status != NULL && status->pResult != NULL)
*status->pResult = VK_SUCCESS;
*status->pResult = result;
if (first_error_or_success == VK_SUCCESS)
first_error_or_success = result;