Mesa (lp-binning): llvmpipe: fix broken TGSI_OPCODE_FRC codegen

Brian Paul brianp at kemper.freedesktop.org
Mon Dec 14 14:27:40 PST 2009


Module: Mesa
Branch: lp-binning
Commit: 55879440d703bf9f5a4040d04a2f2cd024fa07c2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=55879440d703bf9f5a4040d04a2f2cd024fa07c2

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Dec 14 15:27:35 2009 -0700

llvmpipe: fix broken TGSI_OPCODE_FRC codegen

---

 src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
index adc8156..83ac25b 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
@@ -777,7 +777,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;



More information about the mesa-commit mailing list