Mesa (10.2): nv50/ir: retrieve shadow compare from first arg

Carl Worth cworth at kemper.freedesktop.org
Mon Jul 14 20:58:36 UTC 2014


Module: Mesa
Branch: 10.2
Commit: 0618881c8216aa45ae20f2b16266c102a5f41188
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0618881c8216aa45ae20f2b16266c102a5f41188

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Fri Jul  4 17:09:43 2014 -0400

nv50/ir: retrieve shadow compare from first arg

This can only happen with texture(samplerCubeShadow, bias), where the
compare will be in the first argument.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: <mesa-stable at lists.freedesktop.org>
(cherry picked from commit 30d91e0eecfe79e0d8515189a59051ee4f21f3da)

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 2ba3c1c..200fe1f 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -2504,7 +2504,7 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn)
       break;
    case TGSI_OPCODE_TXB2:
    case TGSI_OPCODE_TXL2:
-      handleTEX(dst0, 2, 2, 0x10, 0x11, 0x00, 0x00);
+      handleTEX(dst0, 2, 2, 0x10, 0x0f, 0x00, 0x00);
       break;
    case TGSI_OPCODE_SAMPLE:
    case TGSI_OPCODE_SAMPLE_B:




More information about the mesa-commit mailing list