Mesa (master): llvmpipe: fix broken TGSI_OPCODE_FRC codegen

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Dec 16 07:08:55 PST 2009


Module: Mesa
Branch: master
Commit: f1f49bd465b899d1c85aa07650ca5b62a50303b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f1f49bd465b899d1c85aa07650ca5b62a50303b0

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 3eb0e0c..a67c70f 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;



More information about the mesa-commit mailing list