diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-26 20:40:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 20:40:13 +0200 |
commit | 508242c2671713239c66461125696db1a69bd163 (patch) | |
tree | 07d495dd12545f1860a83f099c288b9637e76e67 /src/video_core/shader | |
parent | Merge pull request #3980 from ReinUsesLisp/red-op (diff) | |
parent | shader/other: Implement BAR.SYNC 0x0 (diff) | |
download | yuzu-508242c2671713239c66461125696db1a69bd163.tar yuzu-508242c2671713239c66461125696db1a69bd163.tar.gz yuzu-508242c2671713239c66461125696db1a69bd163.tar.bz2 yuzu-508242c2671713239c66461125696db1a69bd163.tar.lz yuzu-508242c2671713239c66461125696db1a69bd163.tar.xz yuzu-508242c2671713239c66461125696db1a69bd163.tar.zst yuzu-508242c2671713239c66461125696db1a69bd163.zip |
Diffstat (limited to 'src/video_core/shader')
-rw-r--r-- | src/video_core/shader/decode/other.cpp | 5 | ||||
-rw-r--r-- | src/video_core/shader/node.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/other.cpp b/src/video_core/shader/decode/other.cpp index 399a455c4..694b325e1 100644 --- a/src/video_core/shader/decode/other.cpp +++ b/src/video_core/shader/decode/other.cpp @@ -293,6 +293,11 @@ u32 ShaderIR::DecodeOther(NodeBlock& bb, u32 pc) { SetRegister(bb, instr.gpr0, GetRegister(instr.gpr8)); break; } + case OpCode::Id::BAR: { + UNIMPLEMENTED_IF_MSG(instr.value != 0xF0A81B8000070000ULL, "BAR is not BAR.SYNC 0x0"); + bb.push_back(Operation(OperationCode::Barrier)); + break; + } case OpCode::Id::MEMBAR: { UNIMPLEMENTED_IF(instr.membar.type != Tegra::Shader::MembarType::GL); UNIMPLEMENTED_IF(instr.membar.unknown != Tegra::Shader::MembarUnknown::Default); diff --git a/src/video_core/shader/node.h b/src/video_core/shader/node.h index cce8aeebe..c06512413 100644 --- a/src/video_core/shader/node.h +++ b/src/video_core/shader/node.h @@ -233,6 +233,7 @@ enum class OperationCode { ThreadLtMask, /// () -> uint ShuffleIndexed, /// (uint value, uint index) -> uint + Barrier, /// () -> void MemoryBarrierGL, /// () -> void Amount, |