summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-08-16 00:33:34 -0400
committerIlia Mirkin <[email protected]>2017-08-16 22:39:22 -0400
commit934511d1f3a8e2e9b0091d725c87a22a51233141 (patch)
tree047beba2931cdd505b191f07d6de84e1740821ab /src/gallium/drivers/nouveau
parent054c54d1be634dec106c30030bb4921f398d6c90 (diff)
nv50/ir: fix TXQ srcMask
src0.x is always read for the LOD, irrespective of which outputs are read. Signed-off-by: Ilia Mirkin <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 8d9c0774cfb..b98015a6389 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -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;