intel/nullhw: fix build

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4507
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9849>
This commit is contained in:
Lionel Landwerlin
2021-03-26 10:54:49 +02:00
committed by Marge Bot
parent 5e1f5f6a7b
commit 6d72f404df
+5 -4
View File
@@ -34,6 +34,7 @@
#include "util/macros.h"
#include "util/simple_mtx.h"
#include "vk_dispatch_table.h"
#include "vk_enum_to_str.h"
#include "vk_util.h"
@@ -242,7 +243,7 @@ static VkResult nullhw_CreateDevice(
struct instance_data *instance_data = FIND(struct instance_data, physicalDevice);
struct device_data *device_data = new_device_data(*pDevice, instance_data);
device_data->physical_device = physicalDevice;
vk_load_device_commands(*pDevice, fpGetDeviceProcAddr, &device_data->vtable);
vk_device_dispatch_table_load(&device_data->vtable, fpGetDeviceProcAddr, *pDevice);
VkLayerDeviceCreateInfo *load_data_info =
get_device_chain_info(pCreateInfo, VK_LOADER_DATA_CALLBACK);
@@ -312,9 +313,9 @@ static VkResult nullhw_CreateInstance(
if (result != VK_SUCCESS) return result;
struct instance_data *instance_data = new_instance_data(*pInstance);
vk_load_instance_commands(instance_data->instance,
fpGetInstanceProcAddr,
&instance_data->vtable);
vk_instance_dispatch_table_load(&instance_data->vtable,
fpGetInstanceProcAddr,
instance_data->instance);
return result;
}