summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFernandoS27 <fsahmkow27@gmail.com>2021-04-03 03:01:12 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:26 +0200
commite7700aad183047f0c6fa990e1f424448d00c8865 (patch)
tree9c3536401b925bbe40e9589c1bc963867e2ade5c
parentshader: Address feedback (diff)
downloadyuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar.gz
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar.bz2
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar.lz
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar.xz
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.tar.zst
yuzu-e7700aad183047f0c6fa990e1f424448d00c8865.zip
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index 5e94edd74..dbfc670b0 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -86,10 +86,13 @@ void IREmitter::MemoryBarrier(MemoryScope scope) {
switch (scope) {
case MemoryScope::Workgroup:
Inst(Opcode::MemoryBarrierWorkgroupLevel);
+ break;
case MemoryScope::Device:
Inst(Opcode::MemoryBarrierDeviceLevel);
+ break;
case MemoryScope::System:
Inst(Opcode::MemoryBarrierSystemLevel);
+ break;
default:
throw InvalidArgument("Invalid memory scope {}", scope);
}