From 7660c9ee4ec97b5c74b73667acf91a8206208b23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 28 Apr 2017 20:31:45 +0200 Subject: [PATCH] radeonsi: make si_compile_llvm static MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_shader.c | 16 ++++++++-------- src/gallium/drivers/radeonsi/si_shader.h | 8 -------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 736084f1ad1..c4d102e0202 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -6814,14 +6814,14 @@ void si_shader_dump(struct si_screen *sscreen, struct si_shader *shader, check_debug_option); } -int si_compile_llvm(struct si_screen *sscreen, - struct ac_shader_binary *binary, - struct si_shader_config *conf, - LLVMTargetMachineRef tm, - LLVMModuleRef mod, - struct pipe_debug_callback *debug, - unsigned processor, - const char *name) +static int si_compile_llvm(struct si_screen *sscreen, + struct ac_shader_binary *binary, + struct si_shader_config *conf, + LLVMTargetMachineRef tm, + LLVMModuleRef mod, + struct pipe_debug_callback *debug, + unsigned processor, + const char *name) { int r = 0; unsigned count = p_atomic_inc_return(&sscreen->b.num_compilations); diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index 0988d91de4e..4a2c042778d 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -596,14 +596,6 @@ int si_compile_tgsi_shader(struct si_screen *sscreen, int si_shader_create(struct si_screen *sscreen, LLVMTargetMachineRef tm, struct si_shader *shader, struct pipe_debug_callback *debug); -int si_compile_llvm(struct si_screen *sscreen, - struct ac_shader_binary *binary, - struct si_shader_config *conf, - LLVMTargetMachineRef tm, - LLVMModuleRef mod, - struct pipe_debug_callback *debug, - unsigned processor, - const char *name); void si_shader_destroy(struct si_shader *shader); unsigned si_shader_io_get_unique_index(unsigned semantic_name, unsigned index); unsigned si_shader_io_get_unique_index2(unsigned name, unsigned index); -- 2.30.2