gm107/ir: indirect handle goes first on maxwell also
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 14 Aug 2015 18:10:36 +0000 (14:10 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 14 Aug 2015 18:11:44 +0000 (14:11 -0400)
Fixes fs-simple-texture-size.shader_test

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.6" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp

index c632e30afae4be3aacbfca1516b35688ee07d261..c3c302da5c8dce701cf967cb5c4c51fd1c7b6ce3 100644 (file)
@@ -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;