turnip: Fix KGSL build since common dispatch rework.

Fixes: 59d70c47c7 ("turnip: Use the common dispatch framework")
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9764>
This commit is contained in:
Eric Anholt
2021-03-22 12:10:38 -07:00
committed by Marge Bot
parent de9f04ca66
commit 6eee6769e9
+1 -2
View File
@@ -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;