aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/ir_opt/texture_pass.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-03-24 19:38:37 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:24 -0400
commit49e87ea8ab86f94239a6830666f3a8f897a0167a (patch)
tree014b8dcdb8b480e3ad8fbe560d0a6d1146ef877d /src/shader_recompiler/ir_opt/texture_pass.cpp
parentd3dad6b6320f680b4e85ab991941d15cbce0e616 (diff)
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 de9d633e28..2c8164b8a8 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) {
ConstBufferAddr addr;
if (IsBindless(inst)) {
VisitedBlocks visited;
- const std::optional<ConstBufferAddr> track_addr{Track(block, IR::Value{&inst}, visited)};
+ const std::optional<ConstBufferAddr> track_addr{Track(block, inst.Arg(0), visited)};
if (!track_addr) {
throw NotImplementedException("Failed to track bindless texture constant buffer");
}