From: Ilia Mirkin Date: Wed, 16 Aug 2017 04:33:34 +0000 (-0400) Subject: nv50/ir: fix TXQ srcMask X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=934511d1f3a8e2e9b0091d725c87a22a51233141;p=mesa.git nv50/ir: fix TXQ srcMask src0.x is always read for the LOD, irrespective of which outputs are read. Signed-off-by: Ilia Mirkin Cc: mesa-stable@lists.freedesktop.org --- 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;