anv: add missing "fall-through" annotation
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 17 Nov 2019 23:56:49 +0000 (23:56 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Nov 2019 22:03:00 +0000 (22:03 +0000)
CoverityID: 1455884
Fixes: c1c346f1667375e9330a ("anv: implement VK_KHR_separate_depth_stencil_layouts")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_image.c

index e96e04f621b8f1c402add5a11d97f6db3f8fa2f1..2e6ca82dabc045ca97c2504191a4cc92223c9a6d 100644 (file)
@@ -1184,6 +1184,7 @@ anv_layout_to_aux_usage(const struct gen_device_info * const devinfo,
    /* Rendering Layouts */
    case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL:
       assert(aspect & VK_IMAGE_ASPECT_ANY_COLOR_BIT_ANV);
+      /* fall-through */
    case VK_IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL_KHR:
       if (image->planes[plane].aux_usage == ISL_AUX_USAGE_NONE) {
          assert(image->samples == 1);