r600g: cleanup includes in winsys
authorMarek Olšák <maraeo@gmail.com>
Fri, 22 Jul 2011 19:38:56 +0000 (21:38 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 16 Aug 2011 07:15:10 +0000 (09:15 +0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600.h
src/gallium/drivers/r600/r600_asm.h
src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_bo.c
src/gallium/winsys/r600/drm/r600_bomgr.c
src/gallium/winsys/r600/drm/r600_drm.c
src/gallium/winsys/r600/drm/r600_hw_context.c
src/gallium/winsys/r600/drm/r600_priv.h
src/gallium/winsys/r600/drm/radeon_bo.c
src/gallium/winsys/r600/drm/radeon_pciid.c

index 2ac5ed465c189a41184e4897d1a2fe78bb9c761f..714af0c112da244401c7dc0c655b022c1dfaa851 100644 (file)
 #ifndef R600_H
 #define R600_H
 
-#include <assert.h>
-#include <stdint.h>
-#include <stdio.h>
-#include <util/u_double_list.h>
-#include <util/u_inlines.h>
-#include <pipe/p_compiler.h>
+#include "util/u_double_list.h"
+#include "util/u_inlines.h"
 
 #define RADEON_CTX_MAX_PM4     (64 * 1024 / 4)
 
index cbdaacf7178d8240cfc3a892b35deb716c934c69..5dec95acf1d91b9cd05be3f83c0e490339303293 100644 (file)
@@ -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;
 
index 7fe2050cd84c0593fc28c9a6005bedefa1b523c2..412533e44bc97e4afbc3685177e031302951c247 100644 (file)
  * Authors:
  *      Jerome Glisse
  */
-#include <errno.h>
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-#include <assert.h>
-#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 <errno.h>
 
 #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;
 }
-
index 0f5b063cf5a23a5cad1bbe54f1809218c7c1df51..f6e15630d7156df7d3f6180dfc475555813f7be8 100644 (file)
  * Authors:
  *      Dave Airlie
  */
-#include <pipe/p_compiler.h>
-#include <pipe/p_screen.h>
-#include <pipebuffer/pb_bufmgr.h>
-#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,
index 4918d5eb0b14b950d4843a873d4a1eb62d3278f0..5cea7654d97ab510a365bc0bb28010c283a283d9 100644 (file)
  *      Thomas Hellström <thomas-at-vmware-dot-com>
  *      Jerome Glisse <jglisse@redhat.com>
  */
-#include <util/u_memory.h>
-#include <util/u_double_list.h>
-#include <util/u_time.h>
-#include <pipebuffer/pb_bufmgr.h>
 #include "r600_priv.h"
+#include "util/u_memory.h"
+#include "util/u_time.h"
 
 static void r600_bomgr_timeout_flush(struct r600_bomgr *mgr)
 {
index ab15257efb215cf99481cca5fc4335aa5ed501a2..3a2186c6f4a452f9458a50df9642ac53bf74e0ce 100644 (file)
  *      Corbin Simpson <MostAwesomeDude@gmail.com>
  *      Joakim Sindholt <opensource@zhasha.com>
  */
-#include <stdio.h>
-#include <errno.h>
-#include <sys/ioctl.h>
-#include "util/u_inlines.h"
-#include "util/u_debug.h"
-#include "util/u_hash_table.h"
-#include <pipebuffer/pb_bufmgr.h>
-#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 <radeon_drm.h>
+#include <xf86drm.h>
+#include <errno.h>
 
 #ifndef RADEON_INFO_NUM_TILE_PIPES
 #define RADEON_INFO_NUM_TILE_PIPES 0xb
index 46ca4ed907a4990624640c603f908224259ce697..60de24fa67ffaf4215a47bacb8594b8ca1abce4b 100644 (file)
  * Authors:
  *      Jerome Glisse
  */
-#include <errno.h>
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <pipe/p_compiler.h>
-#include <util/u_inlines.h>
-#include <util/u_memory.h>
-#include <pipebuffer/pb_bufmgr.h>
-#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 <errno.h>
 
 #define GROUP_FORCE_NEW_BLOCK  0
 
index 9fc7c534646a49fc1eb18b4e40b1a13b96ed0344..08a3552803c94c0cbe9281f856c253875d11a245 100644 (file)
 #ifndef R600_PRIV_H
 #define R600_PRIV_H
 
-#include <errno.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <util/u_double_list.h>
-#include <util/u_inlines.h>
-#include "util/u_hash_table.h"
-#include <os/os_thread.h>
 #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)
index 34696da515b609a353bb2ab3ddd9ad30d8307832..80336de4537dbab8fe262ab28949a51508cd4939 100644 (file)
  *      Jerome Glisse
  */
 #define _FILE_OFFSET_BITS 64
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <errno.h>
 #include "r600_priv.h"
-#include "xf86drm.h"
+#include "util/u_hash_table.h"
 #include "radeon_drm.h"
+#include "xf86drm.h"
+#include <sys/mman.h>
+#include <errno.h>
 
 int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo)
 {
index f54a7c8fe720f6c5f189e540a427e79bb7b1a3e8..87572417c80f8c479da1efa29354c21b0651241f 100644 (file)
@@ -23,7 +23,6 @@
  * Authors:
  *      Jerome Glisse
  */
-#include <stdlib.h>
 #include "r600_priv.h"
 
 struct pci_id {