summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/ir_emitter.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-17 08:21:03 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commit0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0 (patch)
tree809cb00a8188a76cb5585379d9982d9e52fcd0e6 /src/shader_recompiler/frontend/ir/ir_emitter.cpp
parentspirv: Fix implicit lod type (diff)
downloadyuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar.gz
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar.bz2
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar.lz
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar.xz
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.tar.zst
yuzu-0a0818c0259b4f90f1f7bb37fcffbc1f194ca4d0.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/ir_emitter.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
index ef3b00bc2..aebe7200f 100644
--- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp
+++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp
@@ -86,20 +86,12 @@ void IREmitter::Barrier() {
Inst(Opcode::Barrier);
}
-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);
- }
+void IREmitter::WorkgroupMemoryBarrier() {
+ Inst(Opcode::WorkgroupMemoryBarrier);
+}
+
+void IREmitter::DeviceMemoryBarrier() {
+ Inst(Opcode::DeviceMemoryBarrier);
}
void IREmitter::Return() {