r600g: don't include radeon_drm.h and xf86drm.h
authorMarek Olšák <maraeo@gmail.com>
Thu, 4 Aug 2011 04:23:59 +0000 (06:23 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 16 Aug 2011 07:15:11 +0000 (09:15 +0200)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/r600_buffer.c
src/gallium/winsys/r600/drm/evergreen_hw_context.c
src/gallium/winsys/r600/drm/r600_bo.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

index bc70578dc9f8e29071ca5b027b7707e97452b5e3..ca2415adb283227e1fb35adc9a34f6911205533a 100644 (file)
@@ -33,9 +33,6 @@
 #include <util/u_memory.h>
 #include "util/u_upload_mgr.h"
 
-#include <xf86drm.h>
-#include "radeon_drm.h"
-
 #include "r600.h"
 #include "r600_pipe.h"
 
index 1d582ceeaa540ed5c0f0b9c36a863fa5ac434efa..54e26b3f0e92c66eadf7ba54156defea6c6dc46b 100644 (file)
@@ -27,8 +27,6 @@
 #include "r600_priv.h"
 #include "evergreend.h"
 #include "util/u_memory.h"
-#include "radeon_drm.h"
-#include "xf86drm.h"
 #include <errno.h>
 
 #define GROUP_FORCE_NEW_BLOCK  0
index 123f718e664ce02fb82669dfc4a0670f24cb0390..4beedad233e6f6d3ea1f190966e7f7e706c9b496 100644 (file)
@@ -26,7 +26,6 @@
 #include "r600_priv.h"
 #include "r600d.h"
 #include "state_tracker/drm_driver.h"
-#include "radeon_drm.h"
 
 struct r600_bo *r600_bo(struct radeon *radeon,
                        unsigned size, unsigned alignment,
@@ -41,22 +40,22 @@ struct r600_bo *r600_bo(struct radeon *radeon,
         * resources.  We generate them internally for some transfers.
         */
        if (usage == PIPE_USAGE_STAGING) {
-               domains = RADEON_GEM_DOMAIN_GTT;
-               initial_domain = RADEON_GEM_DOMAIN_GTT;
+               domains = RADEON_DOMAIN_GTT;
+               initial_domain = RADEON_DOMAIN_GTT;
        } else {
-               domains = RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM;
+               domains = RADEON_DOMAIN_GTT | RADEON_DOMAIN_VRAM;
 
                switch(usage) {
                case PIPE_USAGE_DYNAMIC:
                case PIPE_USAGE_STREAM:
                case PIPE_USAGE_STAGING:
-                       initial_domain = RADEON_GEM_DOMAIN_GTT;
+                       initial_domain = RADEON_DOMAIN_GTT;
                        break;
                case PIPE_USAGE_DEFAULT:
                case PIPE_USAGE_STATIC:
                case PIPE_USAGE_IMMUTABLE:
                default:
-                       initial_domain = RADEON_GEM_DOMAIN_VRAM;
+                       initial_domain = RADEON_DOMAIN_VRAM;
                        break;
                }
        }
@@ -88,7 +87,7 @@ struct r600_bo *r600_bo_handle(struct radeon *radeon, struct winsys_handle *whan
        }
 
        pipe_reference_init(&bo->reference, 1);
-       bo->domains = RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM;
+       bo->domains = RADEON_DOMAIN_GTT | RADEON_DOMAIN_VRAM;
        bo->cs_buf = radeon->ws->buffer_get_cs_handle(pb);
 
        if (stride)
index a1b0ba1fb0f7244c116cd292ade7e1e438855211..17d098aed968e9faadd879f3aea21c787482e85c 100644 (file)
@@ -29,8 +29,6 @@
 #include "r600_priv.h"
 #include "r600_drm_public.h"
 #include "util/u_memory.h"
-#include <radeon_drm.h>
-#include <xf86drm.h>
 #include <errno.h>
 
 #ifndef RADEON_INFO_NUM_TILE_PIPES
index f39fc69aee7eda95661cbde5768b05e5355d3ea7..577988d37ea79d81bc397064477a7dfd8958f75d 100644 (file)
@@ -26,8 +26,6 @@
 #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 df412a081441174b09de6dabd524a64de305c62e..c5b82fd43aece87fab390fcce2f6e3e904a7ae5e 100644 (file)
@@ -30,7 +30,6 @@
 #include "../../radeon/drm/radeon_winsys.h"
 #include "util/u_hash_table.h"
 #include "os/os_thread.h"
-#include "radeon_drm.h"
 
 #define PKT_COUNT_C                     0xC000FFFF
 #define PKT_COUNT_S(x)                  (((x) & 0x3FFF) << 16)