[Mesa-dev] [PATCH 5/6] ac/nir: remove some unnecessary includes and declarations

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Mar 13 14:05:59 UTC 2018


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c | 4 ----
 src/amd/common/ac_nir_to_llvm.h | 6 +-----
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index dff3bca713..bdb2da6bea 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -27,13 +27,9 @@
 #include "ac_binary.h"
 #include "sid.h"
 #include "nir/nir.h"
-#include "../vulkan/radv_descriptor_set.h"
 #include "util/bitscan.h"
-#include <llvm-c/Transforms/Scalar.h>
 #include "ac_shader_abi.h"
-#include "ac_shader_info.h"
 #include "ac_shader_util.h"
-#include "ac_exp_param.h"
 
 struct ac_nir_context {
 	struct ac_llvm_context ac;
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h
index c87e71f42b..c5cc98d6eb 100644
--- a/src/amd/common/ac_nir_to_llvm.h
+++ b/src/amd/common/ac_nir_to_llvm.h
@@ -28,14 +28,10 @@
 #include "llvm-c/Core.h"
 #include "llvm-c/TargetMachine.h"
 #include "amd_family.h"
-#include "../vulkan/radv_descriptor_set.h"
 #include "compiler/shader_enums.h"
-struct ac_shader_binary;
-struct ac_shader_config;
+
 struct nir_shader;
 struct nir_variable;
-struct radv_pipeline_layout;
-
 struct ac_llvm_context;
 struct ac_shader_abi;
 
-- 
2.16.2



More information about the mesa-dev mailing list