From: Chia-I Wu Date: Thu, 8 Aug 2013 05:30:54 +0000 (+0800) Subject: ilo: clean up GPE header inclusions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19204081ce7edce1d9847d3826f355fde65d4783;p=mesa.git ilo: clean up GPE header inclusions This reduces the number of source files need to be recompiled when GPE functions are changed other than regular clean ups. --- diff --git a/src/gallium/drivers/ilo/ilo_3d_pipeline.h b/src/gallium/drivers/ilo/ilo_3d_pipeline.h index ae4c7598f39..ba3a4be584f 100644 --- a/src/gallium/drivers/ilo/ilo_3d_pipeline.h +++ b/src/gallium/drivers/ilo/ilo_3d_pipeline.h @@ -29,9 +29,7 @@ #define ILO_3D_PIPELINE_H #include "ilo_common.h" -#include "ilo_context.h" -#include "ilo_gpe_gen6.h" -#include "ilo_gpe_gen7.h" +#include "ilo_gpe.h" struct intel_bo; struct ilo_cp; diff --git a/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c b/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c index 36441b848e8..421519915cb 100644 --- a/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c +++ b/src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c @@ -33,6 +33,7 @@ #include "ilo_context.h" #include "ilo_cp.h" #include "ilo_gpe_gen6.h" +#include "ilo_gpe_gen7.h" #include "ilo_shader.h" #include "ilo_state.h" #include "ilo_3d_pipeline.h" diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.c b/src/gallium/drivers/ilo/ilo_gpe_gen6.c index c086ae5887d..143e6fe0a19 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.c @@ -31,7 +31,6 @@ #include "intel_reg.h" #include "ilo_context.h" -#include "ilo_cp.h" #include "ilo_format.h" #include "ilo_resource.h" #include "ilo_shader.h" diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen6.h b/src/gallium/drivers/ilo/ilo_gpe_gen6.h index 9e5be13accd..c4d7cacb68a 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen6.h +++ b/src/gallium/drivers/ilo/ilo_gpe_gen6.h @@ -28,10 +28,9 @@ #ifndef ILO_GPE_GEN6_H #define ILO_GPE_GEN6_H -#include "util/u_dual_blend.h" -#include "util/u_half.h" #include "brw_defines.h" #include "intel_reg.h" +#include "intel_winsys.h" #include "ilo_common.h" #include "ilo_cp.h" @@ -116,13 +115,6 @@ enum ilo_gpe_gen6_state { ILO_GPE_GEN6_STATE_COUNT, }; -enum intel_tiling_mode; - -struct intel_bo; -struct ilo_cp; -struct ilo_texture; -struct ilo_shader; - /** * GEN6 graphics processing engine * diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen7.c b/src/gallium/drivers/ilo/ilo_gpe_gen7.c index cfabe8b3a2f..54846ec5787 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen7.c +++ b/src/gallium/drivers/ilo/ilo_gpe_gen7.c @@ -29,7 +29,6 @@ #include "brw_defines.h" #include "intel_reg.h" -#include "ilo_cp.h" #include "ilo_format.h" #include "ilo_resource.h" #include "ilo_shader.h" diff --git a/src/gallium/drivers/ilo/ilo_gpe_gen7.h b/src/gallium/drivers/ilo/ilo_gpe_gen7.h index a14c9f49415..0f667c18a63 100644 --- a/src/gallium/drivers/ilo/ilo_gpe_gen7.h +++ b/src/gallium/drivers/ilo/ilo_gpe_gen7.h @@ -28,7 +28,12 @@ #ifndef ILO_GPE_GEN7_H #define ILO_GPE_GEN7_H +#include "intel_winsys.h" + #include "ilo_common.h" +#include "ilo_cp.h" +#include "ilo_resource.h" +#include "ilo_shader.h" #include "ilo_gpe_gen6.h" /**