From: Marek Olšák Date: Fri, 22 Jul 2011 19:38:56 +0000 (+0200) Subject: r600g: cleanup includes in winsys X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=354f76f386afd980e8c1564c0b0502f9768007b5;p=mesa.git r600g: cleanup includes in winsys Reviewed-by: Alex Deucher --- diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 2ac5ed465c1..714af0c112d 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -26,12 +26,8 @@ #ifndef R600_H #define R600_H -#include -#include -#include -#include -#include -#include +#include "util/u_double_list.h" +#include "util/u_inlines.h" #define RADEON_CTX_MAX_PM4 (64 * 1024 / 4) diff --git a/src/gallium/drivers/r600/r600_asm.h b/src/gallium/drivers/r600/r600_asm.h index cbdaacf7178..5dec95acf1d 100644 --- a/src/gallium/drivers/r600/r600_asm.h +++ b/src/gallium/drivers/r600/r600_asm.h @@ -23,8 +23,6 @@ #ifndef R600_ASM_H #define R600_ASM_H -#include "util/u_double_list.h" - struct r600_vertex_element; struct r600_pipe_context; diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 7fe2050cd84..412533e44bc 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -23,19 +23,13 @@ * Authors: * Jerome Glisse */ -#include -#include -#include -#include -#include -#include "xf86drm.h" #include "r600.h" +#include "r600_priv.h" #include "evergreend.h" -#include "radeon_drm.h" -#include "pipe/p_compiler.h" -#include "util/u_inlines.h" #include "util/u_memory.h" -#include "r600_priv.h" +#include "radeon_drm.h" +#include "xf86drm.h" +#include #define GROUP_FORCE_NEW_BLOCK 0 @@ -1271,4 +1265,3 @@ void evergreen_context_flush_dest_caches(struct r600_context *ctx) ctx->flags &= ~R600_CONTEXT_DST_CACHES_DIRTY; } - diff --git a/src/gallium/winsys/r600/drm/r600_bo.c b/src/gallium/winsys/r600/drm/r600_bo.c index 0f5b063cf5a..f6e15630d71 100644 --- a/src/gallium/winsys/r600/drm/r600_bo.c +++ b/src/gallium/winsys/r600/drm/r600_bo.c @@ -23,13 +23,9 @@ * Authors: * Dave Airlie */ -#include -#include -#include -#include "state_tracker/drm_driver.h" #include "r600_priv.h" #include "r600d.h" -#include "drm.h" +#include "state_tracker/drm_driver.h" #include "radeon_drm.h" struct r600_bo *r600_bo(struct radeon *radeon, diff --git a/src/gallium/winsys/r600/drm/r600_bomgr.c b/src/gallium/winsys/r600/drm/r600_bomgr.c index 4918d5eb0b1..5cea7654d97 100644 --- a/src/gallium/winsys/r600/drm/r600_bomgr.c +++ b/src/gallium/winsys/r600/drm/r600_bomgr.c @@ -26,11 +26,9 @@ * Thomas Hellström * Jerome Glisse */ -#include -#include -#include -#include #include "r600_priv.h" +#include "util/u_memory.h" +#include "util/u_time.h" static void r600_bomgr_timeout_flush(struct r600_bomgr *mgr) { diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c index ab15257efb2..3a2186c6f4a 100644 --- a/src/gallium/winsys/r600/drm/r600_drm.c +++ b/src/gallium/winsys/r600/drm/r600_drm.c @@ -25,31 +25,12 @@ * Corbin Simpson * Joakim Sindholt */ -#include -#include -#include -#include "util/u_inlines.h" -#include "util/u_debug.h" -#include "util/u_hash_table.h" -#include -#include "r600.h" + #include "r600_priv.h" #include "r600_drm_public.h" -#include "xf86drm.h" -#include "radeon_drm.h" -#include "../../radeon/drm/radeon_winsys.h" - -#ifndef RADEON_INFO_TILING_CONFIG -#define RADEON_INFO_TILING_CONFIG 0x6 -#endif - -#ifndef RADEON_INFO_CLOCK_CRYSTAL_FREQ -#define RADEON_INFO_CLOCK_CRYSTAL_FREQ 0x9 -#endif - -#ifndef RADEON_INFO_NUM_BACKENDS -#define RADEON_INFO_NUM_BACKENDS 0xa -#endif +#include +#include +#include #ifndef RADEON_INFO_NUM_TILE_PIPES #define RADEON_INFO_NUM_TILE_PIPES 0xb diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 46ca4ed907a..60de24fa67f 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -23,19 +23,12 @@ * Authors: * Jerome Glisse */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "xf86drm.h" -#include "radeon_drm.h" #include "r600_priv.h" #include "r600d.h" +#include "util/u_memory.h" +#include "radeon_drm.h" +#include "xf86drm.h" +#include #define GROUP_FORCE_NEW_BLOCK 0 diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 9fc7c534646..08a3552803c 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -26,16 +26,10 @@ #ifndef R600_PRIV_H #define R600_PRIV_H -#include -#include -#include -#include -#include -#include -#include "util/u_hash_table.h" -#include #include "r600.h" #include "../../radeon/drm/radeon_winsys.h" +#include "util/u_hash_table.h" +#include "os/os_thread.h" #define PKT_COUNT_C 0xC000FFFF #define PKT_COUNT_S(x) (((x) & 0x3FFF) << 16) diff --git a/src/gallium/winsys/r600/drm/radeon_bo.c b/src/gallium/winsys/r600/drm/radeon_bo.c index 34696da515b..80336de4537 100644 --- a/src/gallium/winsys/r600/drm/radeon_bo.c +++ b/src/gallium/winsys/r600/drm/radeon_bo.c @@ -24,14 +24,12 @@ * Jerome Glisse */ #define _FILE_OFFSET_BITS 64 -#include -#include -#include -#include -#include #include "r600_priv.h" -#include "xf86drm.h" +#include "util/u_hash_table.h" #include "radeon_drm.h" +#include "xf86drm.h" +#include +#include int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo) { diff --git a/src/gallium/winsys/r600/drm/radeon_pciid.c b/src/gallium/winsys/r600/drm/radeon_pciid.c index f54a7c8fe72..87572417c80 100644 --- a/src/gallium/winsys/r600/drm/radeon_pciid.c +++ b/src/gallium/winsys/r600/drm/radeon_pciid.c @@ -23,7 +23,6 @@ * Authors: * Jerome Glisse */ -#include #include "r600_priv.h" struct pci_id {