summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2020-11-09 17:31:36 -0800
committerMarge Bot <eric+marge@anholt.net>2020-11-17 00:15:51 +0000
commit71ee4e2853bc4af270969e6d91533cba7b9c0cb4 (patch)
treea1aec0a283544028a515b9264c92337f26bda774
parent7820c8c13ff3e9367b208f09059c940a1629f708 (diff)
clover/spirv: Add missing break for SpvOpExecutionMode case.
Fix defect reported by Coverity Scan. Missing break in switch (MISSING_BREAK) unterminated_case: The case for value SpvOpExecutionMode is not terminated by a 'break' statement. Fixes: ee5b46fcfdb ("clover/spirv: support CL_KERNEL_COMPILE_WORK_GROUP_SIZE") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7519>
-rw-r--r--src/gallium/frontends/clover/spirv/invocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/frontends/clover/spirv/invocation.cpp b/src/gallium/frontends/clover/spirv/invocation.cpp
index 27fa06db46c..a755df18055 100644
--- a/src/gallium/frontends/clover/spirv/invocation.cpp
+++ b/src/gallium/frontends/clover/spirv/invocation.cpp
@@ -199,6 +199,7 @@ namespace {
default:
break;
}
+ break;
case SpvOpDecorate: {
const auto id = get<SpvId>(inst, 1);