nvfx: tweak CMP in fp
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:14:35 +0000 (20:14 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 18:42:15 +0000 (20:42 +0200)
src/gallium/drivers/nvfx/nvfx_fragprog.c

index f9b3e07..dc681f4 100644 (file)
@@ -536,7 +536,7 @@ nvfx_fragprog_parse_instruction(struct nvfx_context* nvfx, struct nvfx_fpc *fpc,
                nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], src[1], none));
                break;
        case TGSI_OPCODE_CMP:
-               insn = arith(0, MOV, none.reg, 0xf, src[0], none, none);
+               insn = arith(0, MOV, none.reg, mask, src[0], none, none);
                insn.cc_update = 1;
                nvfx_fp_emit(fpc, insn);