Mesa (mesa_7_7_branch): llvmpipe: fix broken TGSI_OPCODE_FRC codegen
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Thu Jan 28 20:23:03 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: 46167149ceac96cf91f2031d2c58346b80f0834d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=46167149ceac96cf91f2031d2c58346b80f0834d
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 e722bca..88cdf9e 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_tgsi_soa.c
@@ -766,7 +766,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