diff options
author | Nicolai Hähnle <[email protected]> | 2017-01-10 13:16:11 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-01-13 00:39:03 +0100 |
commit | 9f590ee9d9033d72cba70a774902ee2472b9414f (patch) | |
tree | a0b73070c91e7b610de8f4f3e99d85c8883f7f87 /src/gallium/drivers/radeonsi | |
parent | 205ad5234af5a3a5dd6f584b0814cd5a9ce7f10c (diff) |
radeonsi: remove unused si_llvm_cube_to_2d_coords
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c index c0c92a8c154..c410a8b540a 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_alu.c @@ -1015,34 +1015,6 @@ static void build_cube_select(LLVMBuilderRef builder, *out_ma = LLVMBuildFMul(builder, tmp, sgn, ""); } -static void si_llvm_cube_to_2d_coords(struct lp_build_tgsi_context *bld_base, - LLVMValueRef *in, LLVMValueRef *out) -{ - struct gallivm_state *gallivm = bld_base->base.gallivm; - LLVMBuilderRef builder = gallivm->builder; - LLVMTypeRef type = bld_base->base.elem_type; - struct cube_selection_coords coords; - LLVMValueRef invma; - LLVMValueRef mad_args[3]; - - build_cube_intrinsic(gallivm, in, &coords); - - invma = lp_build_intrinsic(builder, "llvm.fabs.f32", - type, &coords.ma, 1, LP_FUNC_ATTR_READNONE); - invma = lp_build_emit_llvm_unary(bld_base, TGSI_OPCODE_RCP, invma); - - mad_args[1] = invma; - mad_args[2] = LLVMConstReal(type, 1.5); - - for (int i = 0; i < 2; ++i) { - mad_args[0] = coords.stc[i]; - out[i] = lp_build_emit_llvm_ternary(bld_base, TGSI_OPCODE_MAD, - mad_args[0], mad_args[1], mad_args[2]); - } - - out[2] = coords.id; -} - void si_prepare_cube_coords(struct lp_build_tgsi_context *bld_base, struct lp_build_emit_data *emit_data, LLVMValueRef *coords_arg, |