[Mesa-dev] [PATCH] gallivm: add IABS opcode support

nobled nobled at dreamwidth.org
Wed Jan 11 10:23:57 PST 2012


---
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c |    1 +
 src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
index a021efd..88702bc 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
@@ -697,6 +697,7 @@ emit_instruction(
       return FALSE;

    case TGSI_OPCODE_ABS:
+   case TGSI_OPCODE_IABS:
       src0 = emit_fetch(bld, inst, 0);
       dst0 = lp_build_abs(&bld->base, src0);
       break;
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
index 40744e3..f9dc5b4 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c
@@ -1812,6 +1812,7 @@ emit_instruction(
       break;

    case TGSI_OPCODE_ABS:
+   case TGSI_OPCODE_IABS:
       FOR_EACH_DST0_ENABLED_CHANNEL( inst, chan_index ) {
          tmp0 = emit_fetch( bld, inst, 0, chan_index );
          dst0[chan_index] = lp_build_abs( &bld->base, tmp0 );
-- 
1.7.4.1


More information about the mesa-dev mailing list