From: Brian Paul Date: Mon, 14 Dec 2009 22:27:35 +0000 (-0700) Subject: llvmpipe: fix broken TGSI_OPCODE_FRC codegen X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1f49bd465b899d1c85aa07650ca5b62a50303b0;p=mesa.git llvmpipe: fix broken TGSI_OPCODE_FRC codegen --- diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c index 3eb0e0c57cb..a67c70ff25a 100644 --- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c +++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c @@ -763,7 +763,7 @@ emit_instruction( FOR_EACH_DST0_ENABLED_CHANNEL( inst, chan_index ) { src0 = emit_fetch( bld, inst, 0, chan_index ); tmp0 = lp_build_floor(&bld->base, src0); - tmp0 = lp_build_sub(&bld->base, tmp0, src0); + tmp0 = lp_build_sub(&bld->base, src0, tmp0); dst0[chan_index] = tmp0; } break;