anv: Fix -Wswitch in anv_layout_to_aux_usage()
authorChad Versace <chadversary@chromium.org>
Thu, 22 Jun 2017 21:39:12 +0000 (14:39 -0700)
committerChad Versace <chadversary@chromium.org>
Thu, 22 Jun 2017 22:18:24 +0000 (15:18 -0700)
anv_layout_to_aux_usage() lacked a case for
VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR. Add an unreachable case, because we
don't support the extension.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c

index 9405a8c0f9371567c7c190b361eab3ec46ab567c..c84fc8ddeabe83147f1dabe745c724d549d75abf 100644 (file)
@@ -520,6 +520,9 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
    case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL:
       assert(!color_aspect);
       return ISL_AUX_USAGE_HIZ;
+
+   case VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR:
+      unreachable("VK_KHR_shared_presentable_image is unsupported");
    }
 
    /* If the layout isn't recognized in the exhaustive switch above, the