diff options
author | Ilia Mirkin <[email protected]> | 2014-07-09 00:42:52 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-07-09 21:10:24 -0400 |
commit | 7f937875c0289c2ffc2dc8306add72d5de7951ef (patch) | |
tree | 44dde972f0cf659ea92d31fb7902dc7c416e5751 /src/gallium | |
parent | 9807a8ddaf3d0b6d8bf8b3e7c0b01cc4c7db4f30 (diff) |
nvc0/ir: account for indirect textures on fermi for txd
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 3 |
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 || |