From 29a9bcc7e758a2dbd783f826eb320640344baddb Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Mon, 22 Jul 2024 10:12:28 -0700 Subject: [PATCH] compilers/clc: Add missing break statements. fixes: c0cf7f578a907298fc4dc24e312d187eaaaa155c Reviewed-by: Karol Herbst Part-of: (cherry picked from commit e5b53d9408589eb5c8fc75b82a9b1ac9eda9c458) --- .pick_status.json | 2 +- src/compiler/clc/clc_helpers.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 43c8323e109..e972b8e5090 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -644,7 +644,7 @@ "description": "compilers/clc: Add missing break statements.", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "c0cf7f578a907298fc4dc24e312d187eaaaa155c", "notes": null diff --git a/src/compiler/clc/clc_helpers.cpp b/src/compiler/clc/clc_helpers.cpp index d8331c7e0d4..73f7427b8a5 100644 --- a/src/compiler/clc/clc_helpers.cpp +++ b/src/compiler/clc/clc_helpers.cpp @@ -488,10 +488,12 @@ public: kernel.localSize[0] = ins->words[ins->operands[2].offset]; kernel.localSize[1] = ins->words[ins->operands[3].offset]; kernel.localSize[2] = ins->words[ins->operands[4].offset]; + break; case SpvExecutionModeLocalSizeHint: kernel.localSizeHint[0] = ins->words[ins->operands[2].offset]; kernel.localSizeHint[1] = ins->words[ins->operands[3].offset]; kernel.localSizeHint[2] = ins->words[ins->operands[4].offset]; + break; default: return; }