Mesa (master): u2f_emit: Fix type parameter in LLVM call.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Jun 26 15:56:54 UTC 2012


Module: Mesa
Branch: master
Commit: 27e94ba4eabec90b2c4d7361a9448b35e2819a8b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=27e94ba4eabec90b2c4d7361a9448b35e2819a8b

Author: Olivier Galibert <galibert at pobox.com>
Date:   Mon Jun 25 18:50:13 2012 +0200

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 <galibert at pobox.com>
Signed-off-by: José Fonseca <jfonseca at vmware.com>

---

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

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c
index cbc5945..17f288f 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




More information about the mesa-commit mailing list