turnip: Fix newly introduced warning.
authorBas Nieuwenhuizen <basni@chromium.org>
Thu, 9 Aug 2018 18:45:49 +0000 (20:45 +0200)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:33 +0000 (10:01 -0700)
src/freedreno/vulkan/tu_device.c

index 5e825634b65a2cc8e1faf57d6b2fc85b2c460042..fe10f048133f4a5c4fbfbee240c13be560da0ea1 100644 (file)
@@ -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)) {