nvfx: tweak CMP in fp
[mesa.git] / src / gallium / drivers / nvfx / nvfx_fragprog.c
index f9b3e075a008c07ffe748b78ea786942ed3b62fd..dc681f4d4d2a96c0709749a232b6b8a032c3fe62 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);