From: Marek Olšák Date: Sun, 16 Oct 2016 23:39:21 +0000 (+0200) Subject: gallium/radeon: remove unused radeon_llvm_reg_index_soa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=502dad4dca2a80030ac92a645b0244c9327221b5;p=mesa.git gallium/radeon: remove unused radeon_llvm_reg_index_soa Reviewed-by: Nicolai Hähnle Reviewed-by: Emil Velikov Acked-by: Edward O'Callaghan --- diff --git a/src/gallium/drivers/radeon/radeon_llvm.h b/src/gallium/drivers/radeon/radeon_llvm.h index 367e4c00f67..b4b968b26b7 100644 --- a/src/gallium/drivers/radeon/radeon_llvm.h +++ b/src/gallium/drivers/radeon/radeon_llvm.h @@ -121,8 +121,6 @@ void radeon_llvm_create_func(struct radeon_llvm_context *ctx, void radeon_llvm_dispose(struct radeon_llvm_context *ctx); -unsigned radeon_llvm_reg_index_soa(unsigned index, unsigned chan); - void radeon_llvm_finalize_module(struct radeon_llvm_context *ctx, bool run_verifier); diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c index 2713cc64e81..2d424d5ff24 100644 --- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c +++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c @@ -152,11 +152,6 @@ push_flow(struct radeon_llvm_context *ctx) return flow; } -unsigned radeon_llvm_reg_index_soa(unsigned index, unsigned chan) -{ - return (index * 4) + chan; -} - static LLVMValueRef emit_swizzle(struct lp_build_tgsi_context *bld_base, LLVMValueRef value, unsigned swizzle_x,