summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt/texture_pass.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-03-09 17:14:57 -0300
committerGravatar ameerj2021-07-22 21:51:23 -0400
commit3a63fa0477ea8297c80133d35494e1dfdc012f95 (patch)
tree3cd8b9be6f91cb1628b0d47513b7adb88df5f7b2 /src/shader_recompiler/ir_opt/texture_pass.cpp
parentshader: Initial support for textures and TEX (diff)
downloadyuzu-3a63fa0477ea8297c80133d35494e1dfdc012f95.tar.gz
yuzu-3a63fa0477ea8297c80133d35494e1dfdc012f95.tar.xz
yuzu-3a63fa0477ea8297c80133d35494e1dfdc012f95.zip
shader: Partial implementation of LDC
Diffstat (limited to 'src/shader_recompiler/ir_opt/texture_pass.cpp')
-rw-r--r--src/shader_recompiler/ir_opt/texture_pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp
index 80e4ad6a9..ec802e02c 100644
--- a/src/shader_recompiler/ir_opt/texture_pass.cpp
+++ b/src/shader_recompiler/ir_opt/texture_pass.cpp
@@ -78,7 +78,7 @@ std::optional<ConstBufferAddr> Track(IR::Block* block, const IR::Value& value,
78 return std::nullopt; 78 return std::nullopt;
79 } 79 }
80 const IR::Inst* const inst{value.InstRecursive()}; 80 const IR::Inst* const inst{value.InstRecursive()};
81 if (inst->Opcode() == IR::Opcode::GetCbuf) { 81 if (inst->Opcode() == IR::Opcode::GetCbufU32) {
82 const IR::Value index{inst->Arg(0)}; 82 const IR::Value index{inst->Arg(0)};
83 const IR::Value offset{inst->Arg(1)}; 83 const IR::Value offset{inst->Arg(1)};
84 if (!index.IsImmediate()) { 84 if (!index.IsImmediate()) {