summaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2019-03-26 19:02:24 -0400
committerGravatar FernandoS272019-04-08 11:28:44 -0400
commitac3ba9a33e0d1e14061fc0f341b69cb85ea2e6a6 (patch)
tree05563ef525c4f8b177f1d797de9fdb06e467e622 /src/video_core/shader/decode
parentFixes to Const Buffer Accessor and Formatting (diff)
downloadyuzu-ac3ba9a33e0d1e14061fc0f341b69cb85ea2e6a6.tar.gz
yuzu-ac3ba9a33e0d1e14061fc0f341b69cb85ea2e6a6.tar.xz
yuzu-ac3ba9a33e0d1e14061fc0f341b69cb85ea2e6a6.zip
Corrections to TEX_B
Diffstat (limited to 'src/video_core/shader/decode')
-rw-r--r--src/video_core/shader/decode/texture.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp
index 3ac04f6b7..300f1abad 100644
--- a/src/video_core/shader/decode/texture.cpp
+++ b/src/video_core/shader/decode/texture.cpp
@@ -65,10 +65,10 @@ u32 ShaderIR::DecodeTexture(NodeBlock& bb, u32 pc) {
65 LOG_WARNING(HW_GPU, "TEX.NODEP implementation is incomplete"); 65 LOG_WARNING(HW_GPU, "TEX.NODEP implementation is incomplete");
66 } 66 }
67 67
68 const TextureType texture_type{instr.tex.texture_type}; 68 const TextureType texture_type{instr.tex_b.texture_type};
69 const bool is_array = instr.tex.array != 0; 69 const bool is_array = instr.tex_b.array != 0;
70 const bool depth_compare = instr.tex.UsesMiscMode(TextureMiscMode::DC); 70 const bool depth_compare = instr.tex_b.UsesMiscMode(TextureMiscMode::DC);
71 const auto process_mode = instr.tex.GetTextureProcessMode(); 71 const auto process_mode = instr.tex_b.GetTextureProcessMode();
72 WriteTexInstructionFloat(bb, instr, 72 WriteTexInstructionFloat(bb, instr,
73 GetTexCode(instr, texture_type, process_mode, depth_compare, 73 GetTexCode(instr, texture_type, process_mode, depth_compare,
74 is_array, true, instr.gpr20)); 74 is_array, true, instr.gpr20));
@@ -462,6 +462,7 @@ Node4 ShaderIR::GetTexCode(Instruction instr, TextureType texture_type,
462 if (is_aoffi) { 462 if (is_aoffi) {
463 aoffi = GetAoffiCoordinates(GetRegister(parameter_register++), coord_count, false); 463 aoffi = GetAoffiCoordinates(GetRegister(parameter_register++), coord_count, false);
464 } 464 }
465 const u32 bindless_offset = (is_bindless ? 1 : 0);
465 466
466 Node dc{}; 467 Node dc{};
467 if (depth_compare) { 468 if (depth_compare) {