From 1e9476e8c565d0fda26413f17a411ed35d9ce67d Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Thu, 29 Sep 2016 14:55:51 +0200 Subject: gallium/radeon: fix argument type of llvm.{cttz,ctlz}.i32 intrinsics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caught by R600_DEBUG=checkir (next commit). Reviewed-by: Marek Olšák --- src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 6a10af3ae44..80e97072443 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -1636,7 +1636,7 @@ static void emit_lsb(const struct lp_build_tgsi_action *action, * * The hardware already implements the correct behavior. */ - lp_build_const_int32(gallivm, 1) + LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0) }; emit_data->output[emit_data->chan] = @@ -1655,7 +1655,7 @@ static void emit_umsb(const struct lp_build_tgsi_action *action, LLVMValueRef args[2] = { emit_data->args[0], /* Don't generate code for handling zero: */ - lp_build_const_int32(gallivm, 1) + LLVMConstInt(LLVMInt1TypeInContext(gallivm->context), 1, 0) }; LLVMValueRef msb = -- cgit v1.2.3