summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt/texture_pass.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-03-24 19:38:37 -0300
committerGravatar ameerj2021-07-22 21:51:24 -0400
commit49e87ea8ab86f94239a6830666f3a8f897a0167a (patch)
tree014b8dcdb8b480e3ad8fbe560d0a6d1146ef877d /src/shader_recompiler/ir_opt/texture_pass.cpp
parentshader: Properly insert Prologue instruction (diff)
downloadyuzu-49e87ea8ab86f94239a6830666f3a8f897a0167a.tar.gz
yuzu-49e87ea8ab86f94239a6830666f3a8f897a0167a.tar.xz
yuzu-49e87ea8ab86f94239a6830666f3a8f897a0167a.zip
shader: Track first bindless argument instead of the instruction itself
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 de9d633e2..2c8164b8a 100644
--- a/src/shader_recompiler/ir_opt/texture_pass.cpp
+++ b/src/shader_recompiler/ir_opt/texture_pass.cpp
@@ -121,7 +121,7 @@ TextureInst MakeInst(Environment& env, IR::Block* block, IR::Inst& inst) {
121 ConstBufferAddr addr; 121 ConstBufferAddr addr;
122 if (IsBindless(inst)) { 122 if (IsBindless(inst)) {
123 VisitedBlocks visited; 123 VisitedBlocks visited;
124 const std::optional<ConstBufferAddr> track_addr{Track(block, IR::Value{&inst}, visited)}; 124 const std::optional<ConstBufferAddr> track_addr{Track(block, inst.Arg(0), visited)};
125 if (!track_addr) { 125 if (!track_addr) {
126 throw NotImplementedException("Failed to track bindless texture constant buffer"); 126 throw NotImplementedException("Failed to track bindless texture constant buffer");
127 } 127 }