Browse Source

nvc0/ir: account for indirect textures on fermi for txd

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
tags/10.3-branchpoint
Ilia Mirkin 11 years ago
parent
commit
7f937875c0
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp

+ 3
- 0
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp View File

@@ -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 ||

Loading…
Cancel
Save