[Mesa-dev] [PATCH mesa] anv: add unreachable() for VK_EXT_fragment_density_map

Eric Engestrom eric.engestrom at intel.com
Tue Dec 4 13:42:36 UTC 2018


This silences the -Wswitch compiler warning.

Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
---
 src/intel/vulkan/anv_image.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 4003ac28444d7edffbf9..1748e9230d726c214715 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -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");
    }
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list