summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-07-09 00:42:52 -0400
committerIlia Mirkin <[email protected]>2014-07-09 21:10:24 -0400
commit7f937875c0289c2ffc2dc8306add72d5de7951ef (patch)
tree44dde972f0cf659ea92d31fb7902dc7c416e5751 /src/gallium/drivers
parent9807a8ddaf3d0b6d8bf8b3e7c0b01cc4c7db4f30 (diff)
nvc0/ir: account for indirect textures on fermi for txd
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-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 ||