nv50/ir: fix TXQ srcMask
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 16 Aug 2017 04:33:34 +0000 (00:33 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 17 Aug 2017 02:39:22 +0000 (22:39 -0400)
src0.x is always read for the LOD, irrespective of which outputs are
read.

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

index 8d9c0774cfbaae0aae7fee2c08bcf73dcba7adf9..b98015a6389c528e124c17bbcf85553cb4033c26 100644 (file)
@@ -345,6 +345,8 @@ unsigned int Instruction::srcMask(unsigned int s) const
       }
    }
       return mask;
+   case TGSI_OPCODE_TXQ:
+      return 1;
    case TGSI_OPCODE_XPD:
    {
       unsigned int x = 0;