gallivm: fix mis-matching AOS instruction emission
authorMaxence Le Doré <maxence.ledore@gmail.com>
Wed, 27 Feb 2013 19:56:58 +0000 (20:56 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 27 Feb 2013 20:23:01 +0000 (20:23 +0000)
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c

index dbd9ccb3b62231b9261ced74cca05c9af286d8dc..9a30cc80296f0d2454b0cbb21f353f240c727215 100644 (file)
@@ -536,7 +536,7 @@ lp_emit_instruction_aos(
    case TGSI_OPCODE_MIN:
       src0 = lp_build_emit_fetch(&bld->bld_base, inst, 0, LP_CHAN_ALL);
       src1 = lp_build_emit_fetch(&bld->bld_base, inst, 1, LP_CHAN_ALL);
-      dst0 = lp_build_max(&bld->bld_base.base, src0, src1);
+      dst0 = lp_build_min(&bld->bld_base.base, src0, src1);
       break;
 
    case TGSI_OPCODE_MAX: