From 934511d1f3a8e2e9b0091d725c87a22a51233141 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Wed, 16 Aug 2017 00:33:34 -0400 Subject: [PATCH] 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 --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2