Mesa (master): nv50/ir: fix TXQ srcMask
Ilia Mirkin
imirkin at kemper.freedesktop.org
Thu Aug 17 02:41:05 UTC 2017
Module: Mesa
Branch: master
Commit: 934511d1f3a8e2e9b0091d725c87a22a51233141
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=934511d1f3a8e2e9b0091d725c87a22a51233141
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed Aug 16 00:33:34 2017 -0400
nv50/ir: fix TXQ srcMask
src0.x is always read for the LOD, irrespective of which outputs are
read.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: mesa-stable at 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 8d9c0774cf..b98015a638 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;
More information about the mesa-commit
mailing list