nvk: Support VkBindMemoryStatusKHR
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27796>
This commit is contained in:
committed by
Marge Bot
parent
5e9c01dfe4
commit
3a88e3f18b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user