nv50/ir: retrieve shadow compare from first arg
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 4 Jul 2014 21:09:43 +0000 (17:09 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 8 Jul 2014 04:14:33 +0000 (00:14 -0400)
This can only happen with texture(samplerCubeShadow, bias), where the
compare will be in the first argument.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp

index 9b7c49000a4b90c5b66e8f49514e36e3cb183e23..af3a87ccf6a5a0dbcfa6008c0b2d293dab924702 100644 (file)
@@ -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: