vulkan: Allow passing NULL dispatch tables to vk_device_init
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20439>
This commit is contained in:

committed by
Marge Bot

parent
8ad6b10a01
commit
b0e55c4d60
@@ -139,11 +139,13 @@ vk_device_init(struct vk_device *device,
|
||||
|
||||
device->physical = physical_device;
|
||||
|
||||
device->dispatch_table = *dispatch_table;
|
||||
if (dispatch_table) {
|
||||
device->dispatch_table = *dispatch_table;
|
||||
|
||||
/* Add common entrypoints without overwriting driver-provided ones. */
|
||||
vk_device_dispatch_table_from_entrypoints(
|
||||
&device->dispatch_table, &vk_common_device_entrypoints, false);
|
||||
/* Add common entrypoints without overwriting driver-provided ones. */
|
||||
vk_device_dispatch_table_from_entrypoints(
|
||||
&device->dispatch_table, &vk_common_device_entrypoints, false);
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->enabledExtensionCount; i++) {
|
||||
int idx;
|
||||
|
Reference in New Issue
Block a user