summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2015-08-14 14:10:36 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2015-08-14 14:11:44 -0400
commitb346a84e270a50f0a8f1a6e474a51da04dd72f0e (patch)
tree14c05951e2cd981eb5246a3608f843071f3ffb8a /src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
parent7ff7d5d799a54f2b08a3019df7fd531501174182 (diff)
gm107/ir: indirect handle goes first on maxwell also
Fixes fs-simple-texture-size.shader_test Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.6" <mesa-stable@lists.freedesktop.org>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp12
1 files changed, 4 insertions, 8 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 c632e30afae..c3c302da5c8 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
@@ -993,14 +993,10 @@ NVC0LoweringPass::handleTXQ(TexInstruction *txq)
txq->tex.r = 0xff;
txq->tex.s = 0x1f;
- if (chipset < NVISA_GM107_CHIPSET) {
- txq->setIndirectR(NULL);
- txq->moveSources(0, 1);
- txq->setSrc(0, hnd);
- txq->tex.rIndirectSrc = 0;
- } else {
- txq->setIndirectR(hnd);
- }
+ txq->setIndirectR(NULL);
+ txq->moveSources(0, 1);
+ txq->setSrc(0, hnd);
+ txq->tex.rIndirectSrc = 0;
}
return true;