aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2018-08-09 20:45:49 +0200
committerChia-I Wu <[email protected]>2019-03-11 10:01:33 -0700
commita0d62e4337e1bdbd918c4be997fed6b31c8a7e9e (patch)
treec0f720b5cd14ed8dc49970ce49294c89481faf42
parentbcd15ab34e57b322f992c1b5292cfaefdb750cec (diff)
turnip: Fix newly introduced warning.
-rw-r--r--src/freedreno/vulkan/tu_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index 5e825634b65..fe10f048133 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -171,6 +171,8 @@ tu_physical_device_init(struct tu_physical_device *device,
default:
if (instance->debug_flags & TU_DEBUG_STARTUP)
tu_logi("Device '%s' is not supported.", device->name);
+ result = vk_errorf(
+ instance, VK_ERROR_INITIALIZATION_FAILED, "unsupported device");
goto fail;
}
if (tu_device_get_cache_uuid(device->gpu_id, device->cache_uuid)) {