vulkan,anv: Add a common base object type for VkDevice
We should keep this very minimal; I don't know that we need to go all struct gl_context on it. However, this gives us at least a tiny base on which we can start building some common functionality. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Kristian H. Kristensen <hoegsberg@google.com> Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4690>
This commit is contained in:

committed by
Marge Bot

parent
9d10bde5a8
commit
a9158f7951
@@ -101,7 +101,7 @@ VkResult genX(CreateQueryPool)(
|
||||
assert(!"Invalid query type");
|
||||
}
|
||||
|
||||
pool = vk_alloc2(&device->alloc, pAllocator, sizeof(*pool), 8,
|
||||
pool = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*pool), 8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (pool == NULL)
|
||||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
@@ -135,7 +135,7 @@ VkResult genX(CreateQueryPool)(
|
||||
return VK_SUCCESS;
|
||||
|
||||
fail:
|
||||
vk_free2(&device->alloc, pAllocator, pool);
|
||||
vk_free2(&device->vk.alloc, pAllocator, pool);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -152,7 +152,7 @@ void genX(DestroyQueryPool)(
|
||||
return;
|
||||
|
||||
anv_device_release_bo(device, pool->bo);
|
||||
vk_free2(&device->alloc, pAllocator, pool);
|
||||
vk_free2(&device->vk.alloc, pAllocator, pool);
|
||||
}
|
||||
|
||||
static struct anv_address
|
||||
|
Reference in New Issue
Block a user