diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2018-12-21 06:33:31 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-01-15 21:54:52 +0100 |
commit | b184ca9089a49646d074ef898c151089207ccd76 (patch) | |
tree | 580e7246d4d1a0c88c59bf81c774aba19af9d26d /src/video_core | |
parent | shader_decode: Implement LD_L (diff) | |
download | yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.gz yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.bz2 yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.lz yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.xz yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.zst yuzu-b184ca9089a49646d074ef898c151089207ccd76.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/shader/decode/memory.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index 49b9a9eab..c70e2ff02 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp @@ -152,6 +152,23 @@ u32 ShaderIR::DecodeMemory(BasicBlock& bb, u32 pc) { break; } + case OpCode::Id::ST_L: { + // UNIMPLEMENTED_IF_MSG(instr.st_l.unknown == 0, "ST_L Unhandled mode: {}", + // static_cast<u32>(instr.st_l.unknown.Value())); + + const Node index = Operation(OperationCode::IAdd, NO_PRECISE, GetRegister(instr.gpr8), + Immediate(static_cast<s32>(instr.smem_imm))); + + switch (instr.ldst_sl.type.Value()) { + case Tegra::Shader::StoreType::Bytes32: + SetLocalMemory(bb, index, GetRegister(instr.gpr0)); + break; + default: + UNIMPLEMENTED_MSG("ST_L Unhandled type: {}", + static_cast<u32>(instr.ldst_sl.type.Value())); + } + break; + } case OpCode::Id::TEX: { Tegra::Shader::TextureType texture_type{instr.tex.texture_type}; const bool is_array = instr.tex.array != 0; |