projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7305a
)
radeonsi: use bitcast in a few places
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 27 Sep 2017 10:48:31 +0000
(12:48 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Fri, 6 Oct 2017 00:56:11 +0000
(
02:56
+0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_shader.c
b/src/gallium/drivers/radeonsi/si_shader.c
index 7498be286f227ebdb0d2bf70f6fbe3182f77d406..b07c35cf2733b415bad40427ed93577d3f1877bc 100644
(file)
--- 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)