u2f_emit: Fix type parameter in LLVM call.
authorOlivier Galibert <galibert@pobox.com>
Mon, 25 Jun 2012 16:50:13 +0000 (18:50 +0200)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 26 Jun 2012 15:55:40 +0000 (16:55 +0100)
The type is the destination type (i.e. float vector) and not the
source type.  Fixes piglit fs-{in,de}crement-uint.

Signed-off-by: Olivier Galibert <galibert@pobox.com>
Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c

index cbc59459d44e34be852eb57b785a30a99403b863..17f288f964e52e1cfb9aeae489d51bb85777df9a 100644 (file)
@@ -693,7 +693,7 @@ u2f_emit(
 {
    emit_data->output[emit_data->chan] = LLVMBuildUIToFP(bld_base->base.gallivm->builder,
                                                        emit_data->args[0],
-                                                       bld_base->uint_bld.vec_type, "");
+                                                       bld_base->base.vec_type, "");
 }
 
 static void