From: Olivier Galibert Date: Mon, 25 Jun 2012 16:50:13 +0000 (+0200) Subject: u2f_emit: Fix type parameter in LLVM call. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27e94ba4eabec90b2c4d7361a9448b35e2819a8b;p=mesa.git u2f_emit: Fix type parameter in LLVM call. 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 Signed-off-by: José Fonseca --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c index cbc59459d44..17f288f964e 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c @@ -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