Module: Mesa
Branch: main
Commit: cea1df7d34f68e6f627d9a5074754577db458c00
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cea1df7d34f68e6f627d9a5074754577db458c00

Author: Thomas H.P. Andersen <[email protected]>
Date:   Wed Dec 22 02:07:02 2021 +0100

panvk: use FALLTHROUGH to stop a warning

Fixes a warning with clang

Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289>

---

 src/panfrost/vulkan/panvk_formats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/panfrost/vulkan/panvk_formats.c 
b/src/panfrost/vulkan/panvk_formats.c
index 2a0e397e82d..9936a158504 100644
--- a/src/panfrost/vulkan/panvk_formats.c
+++ b/src/panfrost/vulkan/panvk_formats.c
@@ -169,7 +169,7 @@ get_image_format_properties(struct panvk_physical_device 
*physical_device,
          goto unsupported;
 
       assert(format_props.optimalTilingFeatures == 
format_props.linearTilingFeatures);
-      /* fallthrough */
+      FALLTHROUGH;
    case VK_IMAGE_TILING_OPTIMAL:
       format_feature_flags = format_props.optimalTilingFeatures;
       break;

Reply via email to