summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-04-24 00:28:41 -0400
committerIlia Mirkin <[email protected]>2014-04-26 12:01:13 -0400
commitb86d78b4c131dba679d13bf52c412ef88ee79398 (patch)
tree1cfa685db0bc390f01f1ee5c6e0553bc4f4252ee /src/gallium
parent24e68c9024e7b55bce97f0f42d44ff0a3cee3a97 (diff)
nvc0/ir: set gatherComp for non-shadow targets
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-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 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) {