diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2021-01-29 12:30:34 -0600 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-02-01 18:54:25 +0000 |
commit | bafd0c680d20c61e180e5469a882d201352abc15 (patch) | |
tree | e32ddb816188dba0b747579691fb15a7305574e7 /src/intel | |
parent | 3a7514ea099eb4982f4376213debb88a191132a7 (diff) |
vulkan: Rework vk_device_init and friends
Now that all drivers are converted over, we can make a few changes.
First off, vk_device_init no longer takes two separate allocators
because we can assume that the parent instance is non-null and it can
pull the instance allocator from that. Second, dispatch tables and the
instance extension table are no longer optional. We leave the device
extension table optional for now because we don't do any verification at
vk_init_physical_device time and some drivers find it more convenient to
set the extensions later in their own physical_device_init for various
reasons.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8676>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index a4bd3012671..bb8513b82ab 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -2660,8 +2660,7 @@ VkResult anv_CreateDevice( &anv_device_entrypoints, false); result = vk_device_init(&device->vk, &physical_device->vk, - &dispatch_table, pCreateInfo, - &physical_device->instance->vk.alloc, pAllocator); + &dispatch_table, pCreateInfo, pAllocator); if (result != VK_SUCCESS) { vk_error(result); goto fail_alloc; |