shader: Fix undetected bug from review
This commit is contained in:
parent
ed6a1b1a3d
commit
e7700aad18
|
@ -86,10 +86,13 @@ void IREmitter::MemoryBarrier(MemoryScope scope) {
|
||||||
switch (scope) {
|
switch (scope) {
|
||||||
case MemoryScope::Workgroup:
|
case MemoryScope::Workgroup:
|
||||||
Inst(Opcode::MemoryBarrierWorkgroupLevel);
|
Inst(Opcode::MemoryBarrierWorkgroupLevel);
|
||||||
|
break;
|
||||||
case MemoryScope::Device:
|
case MemoryScope::Device:
|
||||||
Inst(Opcode::MemoryBarrierDeviceLevel);
|
Inst(Opcode::MemoryBarrierDeviceLevel);
|
||||||
|
break;
|
||||||
case MemoryScope::System:
|
case MemoryScope::System:
|
||||||
Inst(Opcode::MemoryBarrierSystemLevel);
|
Inst(Opcode::MemoryBarrierSystemLevel);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw InvalidArgument("Invalid memory scope {}", scope);
|
throw InvalidArgument("Invalid memory scope {}", scope);
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue