summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-10 01:46:12 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-10 20:45:03 +0100
commit425a254fa24d7179124b4544ffeb2b1fe4fa99dc (patch)
treeffe458cdf75e70e072eab574051c72d0c4c837dc /src/video_core/shader
parentMerge pull request #3208 from ReinUsesLisp/vk-shader-decompiler (diff)
downloadyuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar.gz
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar.bz2
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar.lz
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar.xz
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.tar.zst
yuzu-425a254fa24d7179124b4544ffeb2b1fe4fa99dc.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/other.cpp6
-rw-r--r--src/video_core/shader/node.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp
index 5c802886b..7321698b2 100644
--- a/src/video_core/shader/decode/other.cpp
+++ b/src/video_core/shader/decode/other.cpp
@@ -257,6 +257,12 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) {
SetRegister(bb, instr.gpr0, GetRegister(instr.gpr8));
break;
}
+ case OpCode::Id::MEMBAR: {
+ UNIMPLEMENTED_IF(instr.membar.type != Tegra::Shader::MembarType::GL);
+ UNIMPLEMENTED_IF(instr.membar.unknown != Tegra::Shader::MembarUnknown::Default);
+ bb.push_back(Operation(OperationCode::MemoryBarrierGL));
+ break;
+ }
case OpCode::Id::DEPBAR: {
LOG_DEBUG(HW_GPU, "DEPBAR instruction is stubbed");
break;
diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h
index 1a4d28ae9..abd40f582 100644
--- a/src/video_core/shader/node.h
+++ b/src/video_core/shader/node.h
@@ -189,6 +189,8 @@ enum class OperationCode {
ThreadId, /// () -> uint
ShuffleIndexed, /// (uint value, uint index) -> uint
+ MemoryBarrierGL, /// () -> void
+
Amount,
};