From: Luca Barbieri Date: Sat, 21 Aug 2010 18:14:35 +0000 (+0200) Subject: nvfx: tweak CMP in fp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5eddf95be992d1d6cafe567068ca4c12b0ee2b4a;p=mesa.git nvfx: tweak CMP in fp --- diff --git a/src/gallium/drivers/nvfx/nvfx_fragprog.c b/src/gallium/drivers/nvfx/nvfx_fragprog.c index f9b3e075a00..dc681f4d4d2 100644 --- a/src/gallium/drivers/nvfx/nvfx_fragprog.c +++ b/src/gallium/drivers/nvfx/nvfx_fragprog.c @@ -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);