anv: add unreachable() for VK_EXT_fragment_density_map
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 4 Dec 2018 13:19:20 +0000 (13:19 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 4 Dec 2018 16:22:55 +0000 (16:22 +0000)
This silences the -Wswitch compiler warning.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_image.c

index 4003ac28444d7edffbf97eef1f8eba1e916e737d..1748e9230d726c21471509442d0d3cdb7547bf69 100644 (file)
@@ -918,6 +918,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_FRAGMENT_DENSITY_MAP_OPTIMAL_EXT:
+      unreachable("VK_EXT_fragment_density_map is unsupported");
+
    case VK_IMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NV:
       unreachable("VK_NV_shading_rate_image is unsupported");
    }