summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
index c102bc5214c..bc95cd843ea 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
@@ -787,6 +787,9 @@ NVC0LoweringPass::handleTXD(TexInstruction *txd)
} else {
if (txd->tex.useOffsets)
expected_args++;
+ if (!txd->tex.target.isArray() && (
+ txd->tex.rIndirectSrc >= 0 || txd->tex.sIndirectSrc >= 0))
+ expected_args++;
}
if (expected_args > 4 ||