diff options
author | Nicolai Hähnle <[email protected]> | 2016-09-29 14:55:51 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-04 16:39:28 +0200 |
commit | 1e9476e8c565d0fda26413f17a411ed35d9ce67d (patch) | |
tree | 9ce4f28d18263f07613450c6245180ac0033613b | |
parent | 1b6fb88ab2031a98ddf03a81f644b22a8f7e9428 (diff) |
gallium/radeon: fix argument type of llvm.{cttz,ctlz}.i32 intrinsics
Caught by R600_DEBUG=checkir (next commit).
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 = |