mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
nvk: use a valid allocation scope
VK_OBJECT_TYPE_DESCRIPTOR_POOL is used in vk_zalloc2 as allocation scope.
This should probably have been object scope.
Fixes: 607686f6bf
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33697>
This commit is contained in:
parent
2a3dce1b59
commit
7276191d59
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ nvk_CreateDescriptorPool(VkDevice _device,
|
|||
if (mem_size > 0) {
|
||||
if (pCreateInfo->flags & VK_DESCRIPTOR_POOL_CREATE_HOST_ONLY_BIT_EXT) {
|
||||
pool->host_mem = vk_zalloc2(&dev->vk.alloc, pAllocator, mem_size,
|
||||
16, VK_OBJECT_TYPE_DESCRIPTOR_POOL);
|
||||
16, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (pool->host_mem == NULL) {
|
||||
nvk_destroy_descriptor_pool(dev, pAllocator, pool);
|
||||
return vk_error(dev, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue