From f449fb4ad9d7e1424a85ff4c09285385ec090607 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Thu, 13 Apr 2023 17:10:02 +0200 Subject: [PATCH] Add default case for spv::Dim for TileImageEXT (#5194) Without this the switch statement must be updated at the same time as the SPIR-V headers, which makes rolls impossible. --- source/val/validate_image.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/val/validate_image.cpp b/source/val/validate_image.cpp index ebcd8c3b7..0e5142248 100644 --- a/source/val/validate_image.cpp +++ b/source/val/validate_image.cpp @@ -218,6 +218,7 @@ uint32_t GetPlaneCoordSize(const ImageTypeInfo& info) { plane_size = 3; break; case spv::Dim::Max: + default: assert(0); break; }