mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 05:48:18 +02:00
nvk: Support VkBindMemoryStatusKHR
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27796>
This commit is contained in:
parent
5e9c01dfe4
commit
3a88e3f18b
2 changed files with 10 additions and 0 deletions
|
|
@ -251,6 +251,11 @@ nvk_BindBufferMemory2(VkDevice device,
|
|||
} else {
|
||||
buffer->addr = mem->bo->offset + pBindInfos[i].memoryOffset;
|
||||
}
|
||||
|
||||
const VkBindMemoryStatusKHR *status =
|
||||
vk_find_struct_const(pBindInfos[i].pNext, BIND_MEMORY_STATUS_KHR);
|
||||
if (status != NULL && status->pResult != NULL)
|
||||
*status->pResult = VK_SUCCESS;
|
||||
}
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1106,6 +1106,11 @@ nvk_BindImageMemory2(VkDevice device,
|
|||
|
||||
if (image->stencil_copy_temp.nil.size_B > 0)
|
||||
nvk_image_plane_bind(dev, &image->stencil_copy_temp, mem, &offset_B);
|
||||
|
||||
const VkBindMemoryStatusKHR *status =
|
||||
vk_find_struct_const(pBindInfos[i].pNext, BIND_MEMORY_STATUS_KHR);
|
||||
if (status != NULL && status->pResult != NULL)
|
||||
*status->pResult = VK_SUCCESS;
|
||||
}
|
||||
|
||||
return VK_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue