From b86d78b4c131dba679d13bf52c412ef88ee79398 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 24 Apr 2014 00:28:41 -0400 Subject: nvc0/ir: set gatherComp for non-shadow targets Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium') 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 ef00a2ff700..ea545c21415 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp @@ -1736,6 +1736,8 @@ Converter::handleTEX(Value *dst[4], int R, int S, int L, int C, int Dx, int Dy) if (tgsi.getOpcode() == TGSI_OPCODE_SAMPLE_C_LZ) texi->tex.levelZero = true; + if (tgsi.getOpcode() == TGSI_OPCODE_TG4 && !tgt.isShadow()) + texi->tex.gatherComp = tgsi.getSrc(1).getValueU32(0, info); for (s = 0; s < tgsi.getNumTexOffsets(); ++s) { for (c = 0; c < 3; ++c) { -- cgit v1.2.3