summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-10-02 14:31:42 +0100
committerEric Engestrom <[email protected]>2018-10-02 15:09:29 +0100
commit7b0752fb101ad1715cdc1c3424e11cda4aae6b23 (patch)
tree3e56ab43884b000fe508263f0689f9699b48abe3 /src
parentae78489d3eb2d3916555e593e387103c06cecce6 (diff)
anv: suppress warning about unhandled image layout
Let's just be explicit that VK_NV_shading_rate_image is not supported. Suggested-by: Jason Ekstrand <[email protected]> Fixes: 6ee17091708a41c4aa81a "vulkan: Update the XML and headers to 1.1.86" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index b0d8c560adb..9f7964ae37e 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -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