diff options
author | Marek Olšák <[email protected]> | 2017-09-27 12:48:31 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-06 02:56:11 +0200 |
commit | bacdf5a928a1701cb5349b7a053fcfc3420a27f8 (patch) | |
tree | ce6491ec24d0fc02c761f71269723d624eff8675 | |
parent | ad7305aa96c71180fb93cea7f1a33d141f98af5b (diff) |
radeonsi: use bitcast in a few places
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 7498be286f2..b07c35cf273 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -1037,8 +1037,7 @@ static LLVMValueRef lds_load(struct lp_build_tgsi_context *bld_base, return si_llvm_emit_fetch_64bit(bld_base, type, value, value2); } - return LLVMBuildBitCast(gallivm->builder, value, - tgsi2llvmtype(bld_base, type), ""); + return bitcast(bld_base, type, value); } /** @@ -1325,9 +1324,7 @@ static LLVMValueRef fetch_input_gs( return si_llvm_emit_fetch_64bit(bld_base, type, value, value2); } - return LLVMBuildBitCast(gallivm->builder, - value, - tgsi2llvmtype(bld_base, type), ""); + return bitcast(bld_base, type, value); } static int lookup_interp_param_index(unsigned interpolate, unsigned location) |