From 68586bdd215f5f1af956f9e2e71039a5011a7ce1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 14 Jan 2020 20:27:24 -0500 Subject: [PATCH] radeonsi: remove useless #includes Reviewed-by: Timothy Arceri Part-of: --- src/gallium/drivers/radeonsi/si_get.c | 2 -- src/gallium/drivers/radeonsi/si_pipe.c | 3 --- src/gallium/drivers/radeonsi/si_shader.c | 4 ---- src/gallium/drivers/radeonsi/si_shader.h | 2 -- src/gallium/drivers/radeonsi/si_shader_internal.h | 3 --- src/gallium/drivers/radeonsi/si_shader_llvm.c | 1 - src/gallium/drivers/radeonsi/si_shader_llvm_build.c | 3 --- 7 files changed, 18 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 1adbafda53a..d6b960379b4 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -26,14 +26,12 @@ #include "radeon/radeon_video.h" #include "radeon/radeon_vce.h" #include "radeon/radeon_uvd_enc.h" -#include "ac_llvm_util.h" #include "vl/vl_decoder.h" #include "vl/vl_video_buffer.h" #include "util/u_screen.h" #include "util/u_video.h" #include "compiler/nir/nir.h" -#include #include static const char *si_get_vendor(struct pipe_screen *pscreen) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index daba5bcd79a..f49961d2b43 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -29,7 +29,6 @@ #include "si_compute.h" #include "sid.h" -#include "ac_llvm_util.h" #include "radeon/radeon_uvd.h" #include "util/disk_cache.h" #include "util/u_log.h" @@ -45,8 +44,6 @@ #include "gallium/winsys/amdgpu/drm/amdgpu_public.h" #include -#include - static struct pipe_context *si_create_context(struct pipe_screen *screen, unsigned flags); diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index add0ff1fcf0..49538e823f4 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -22,16 +22,12 @@ * USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include - #include "util/u_memory.h" #include "tgsi/tgsi_strings.h" #include "tgsi/tgsi_from_mesa.h" #include "ac_exp_param.h" -#include "ac_shader_util.h" #include "ac_rtld.h" -#include "ac_llvm_util.h" #include "si_shader_internal.h" #include "si_pipe.h" #include "sid.h" diff --git a/src/gallium/drivers/radeonsi/si_shader.h b/src/gallium/drivers/radeonsi/si_shader.h index cfddda02128..3a6ad2b5117 100644 --- a/src/gallium/drivers/radeonsi/si_shader.h +++ b/src/gallium/drivers/radeonsi/si_shader.h @@ -131,8 +131,6 @@ #ifndef SI_SHADER_H #define SI_SHADER_H -#include /* LLVMModuleRef */ -#include #include "util/u_inlines.h" #include "util/u_queue.h" #include "util/simple_mtx.h" diff --git a/src/gallium/drivers/radeonsi/si_shader_internal.h b/src/gallium/drivers/radeonsi/si_shader_internal.h index f3b02f26f85..e9b41e0ff16 100644 --- a/src/gallium/drivers/radeonsi/si_shader_internal.h +++ b/src/gallium/drivers/radeonsi/si_shader_internal.h @@ -28,9 +28,6 @@ #include "si_shader.h" #include "ac_shader_abi.h" -#include -#include - struct pipe_debug_callback; #define RADEON_LLVM_MAX_INPUTS 32 * 4 diff --git a/src/gallium/drivers/radeonsi/si_shader_llvm.c b/src/gallium/drivers/radeonsi/si_shader_llvm.c index 11f5a14d121..841c97b00bf 100644 --- a/src/gallium/drivers/radeonsi/si_shader_llvm.c +++ b/src/gallium/drivers/radeonsi/si_shader_llvm.c @@ -24,7 +24,6 @@ #include "si_shader_internal.h" #include "si_pipe.h" -#include "ac_llvm_util.h" #include "util/u_memory.h" struct si_llvm_diagnostics { diff --git a/src/gallium/drivers/radeonsi/si_shader_llvm_build.c b/src/gallium/drivers/radeonsi/si_shader_llvm_build.c index 722faf45d15..7c159560cb6 100644 --- a/src/gallium/drivers/radeonsi/si_shader_llvm_build.c +++ b/src/gallium/drivers/radeonsi/si_shader_llvm_build.c @@ -22,12 +22,9 @@ * USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#include - #include "si_shader_internal.h" #include "si_pipe.h" #include "sid.h" -#include "ac_llvm_util.h" /** * Load a dword from a constant buffer. -- 2.30.2