anv: suppress warning about unhandled image layout
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 2 Oct 2018 13:31:42 +0000 (14:31 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 2 Oct 2018 14:09:29 +0000 (15:09 +0100)
Let's just be explicit that VK_NV_shading_rate_image is not supported.

Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com>
Fixes: 6ee17091708a41c4aa81a "vulkan: Update the XML and headers to 1.1.86"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/intel/vulkan/anv_image.c

index b0d8c560adb2292bd0f6b5eab1849fa580e07563..9f7964ae37eba894f8e40c871fb71e3be7510351 100644 (file)
@@ -920,6 +920,9 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
 
    case VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR:
       unreachable("VK_KHR_shared_presentable_image is unsupported");
+
+   case VK_IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV:
+      unreachable("VK_NV_shading_rate_image is unsupported");
    }
 
    /* If the layout isn't recognized in the exhaustive switch above, the