nv50: fix bogus parameters when processing sample instructions
authorRoland Scheidegger <sroland@vmware.com>
Tue, 12 Feb 2013 15:45:49 +0000 (16:45 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 12 Feb 2013 15:51:11 +0000 (16:51 +0100)
Discovered accidentally when changing SAMPLE_L definition.
Turns out the lod arguments were already correct for the new definition
but the compare and derivs were not.

Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
src/gallium/drivers/nv50/codegen/nv50_ir_from_tgsi.cpp

index 5078eb4d6f88036773fdce32671dba1bfac35e86..acec6230fa8e8acbd93e59e6d79c111de8eac6e2 100644 (file)
@@ -2065,7 +2065,7 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn)
    case TGSI_OPCODE_SAMPLE_L:
    case TGSI_OPCODE_SAMPLE_C:
    case TGSI_OPCODE_SAMPLE_C_LZ:
-      handleTEX(dst0, 1, 2, 0x30, 0x31, 0x40, 0x50);
+      handleTEX(dst0, 1, 2, 0x30, 0x30, 0x30, 0x40);
       break;
    case TGSI_OPCODE_TXF:
    case TGSI_OPCODE_LOAD: