From 6eee6769e95404ce46c7339f6c24a4e8c9f38562 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 22 Mar 2021 12:10:38 -0700 Subject: [PATCH] turnip: Fix KGSL build since common dispatch rework. Fixes: 59d70c47c774 ("turnip: Use the common dispatch framework") Acked-by: Daniel Stone Part-of: --- src/freedreno/vulkan/tu_kgsl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_kgsl.c b/src/freedreno/vulkan/tu_kgsl.c index 2d3e903e409..6d968415f46 100644 --- a/src/freedreno/vulkan/tu_kgsl.c +++ b/src/freedreno/vulkan/tu_kgsl.c @@ -206,7 +206,7 @@ tu_enumerate_devices(struct tu_instance *instance) struct tu_physical_device *device = &instance->physical_devices[0]; - if (instance->enabled_extensions.KHR_display) + if (instance->vk.enabled_extensions.KHR_display) return vk_errorf(instance, VK_ERROR_INCOMPATIBLE_DRIVER, "I can't KHR_display"); @@ -230,7 +230,6 @@ tu_enumerate_devices(struct tu_instance *instance) if (instance->debug_flags & TU_DEBUG_STARTUP) mesa_logi("Found compatible device '%s'.", path); - vk_object_base_init(NULL, &device->base, VK_OBJECT_TYPE_PHYSICAL_DEVICE); device->instance = instance; device->master_fd = -1; device->local_fd = fd;