summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2018-12-21 02:33:31 -0300
committerGravatar ReinUsesLisp2019-01-15 17:54:52 -0300
commitb184ca9089a49646d074ef898c151089207ccd76 (patch)
tree580e7246d4d1a0c88c59bf81c774aba19af9d26d /src
parentshader_decode: Implement LD_L (diff)
downloadyuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.gz
yuzu-b184ca9089a49646d074ef898c151089207ccd76.tar.xz
yuzu-b184ca9089a49646d074ef898c151089207ccd76.zip
shader_decode: Implement ST_L
Diffstat (limited to 'src')
-rw-r--r--src/video_core/shader/decode/memory.cpp17
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) {
152 152
153 break; 153 break;
154 } 154 }
155 case OpCode::Id::ST_L: {
156 // UNIMPLEMENTED_IF_MSG(instr.st_l.unknown == 0, "ST_L Unhandled mode: {}",
157 // static_cast<u32>(instr.st_l.unknown.Value()));
158
159 const Node index = Operation(OperationCode::IAdd, NO_PRECISE, GetRegister(instr.gpr8),
160 Immediate(static_cast<s32>(instr.smem_imm)));
161
162 switch (instr.ldst_sl.type.Value()) {
163 case Tegra::Shader::StoreType::Bytes32:
164 SetLocalMemory(bb, index, GetRegister(instr.gpr0));
165 break;
166 default:
167 UNIMPLEMENTED_MSG("ST_L Unhandled type: {}",
168 static_cast<u32>(instr.ldst_sl.type.Value()));
169 }
170 break;
171 }
155 case OpCode::Id::TEX: { 172 case OpCode::Id::TEX: {
156 Tegra::Shader::TextureType texture_type{instr.tex.texture_type}; 173 Tegra::Shader::TextureType texture_type{instr.tex.texture_type};
157 const bool is_array = instr.tex.array != 0; 174 const bool is_array = instr.tex.array != 0;