winsys/radeon: remove unused radeon_info variables, move backend_map
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Apr 2014 20:39:09 +0000 (22:39 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Apr 2014 18:50:17 +0000 (20:50 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_bo.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
src/gallium/winsys/radeon/drm/radeon_drm_winsys.h
src/gallium/winsys/radeon/drm/radeon_winsys.h

index 34f26bb4e0c8a7199663a88710b50c221247e3bd..e6668930fa9dce8af3e9298dea857b3b3f1051ac 100644 (file)
@@ -654,7 +654,7 @@ struct pb_manager *radeon_bomgr_create(struct radeon_drm_winsys *rws)
     pipe_mutex_init(mgr->bo_va_mutex);
 
     mgr->va = rws->info.r600_virtual_address;
-    mgr->va_offset = rws->info.r600_va_start;
+    mgr->va_offset = rws->va_start;
     list_inithead(&mgr->va_holes);
 
     return &mgr->base;
index 0f64af58239b50d821b7ea2c63a41aa37e0f1d91..a2480540c40d399667d23c5a0dd86004f90d1e45 100644 (file)
@@ -354,12 +354,14 @@ static boolean do_winsys_init(struct radeon_drm_winsys *ws)
 
         ws->info.r600_virtual_address = FALSE;
         if (ws->info.drm_minor >= 13) {
+            uint32_t ib_vm_max_size;
+
             ws->info.r600_virtual_address = TRUE;
             if (!radeon_get_drm_value(ws->fd, RADEON_INFO_VA_START, NULL,
-                                      &ws->info.r600_va_start))
+                                      &ws->va_start))
                 ws->info.r600_virtual_address = FALSE;
             if (!radeon_get_drm_value(ws->fd, RADEON_INFO_IB_VM_MAX_SIZE, NULL,
-                                      &ws->info.r600_ib_vm_max_size))
+                                      &ib_vm_max_size))
                 ws->info.r600_virtual_address = FALSE;
         }
        if (ws->gen == DRV_R600 && !debug_get_bool_option("RADEON_VA", FALSE))
index a10b89074cf76db73a99b88768318f47a09aa751..1aa9cf41288db53f46daef2bf3591e40899b9e4b 100644 (file)
@@ -53,6 +53,7 @@ struct radeon_drm_winsys {
 
     enum radeon_generation gen;
     struct radeon_info info;
+    uint32_t va_start;
 
     struct pb_manager *kman;
     struct pb_manager *cman;
index c5fec683c19e13a4e7c46cdb7fd844e54d5ab862..eeae724d04242bafe21a1f279f89d74ae7591a06 100644 (file)
@@ -211,14 +211,13 @@ struct radeon_info {
     uint32_t                    r600_clock_crystal_freq;
     uint32_t                    r600_tiling_config;
     uint32_t                    r600_num_tile_pipes;
-    uint32_t                    r600_backend_map;
-    uint32_t                    r600_va_start;
-    uint32_t                    r600_ib_vm_max_size;
     uint32_t                    r600_max_pipes;
-    boolean                     r600_backend_map_valid;
     boolean                     r600_virtual_address;
     boolean                     r600_has_dma;
 
+    uint32_t                    r600_backend_map;
+    boolean                     r600_backend_map_valid;
+
     boolean                     si_tile_mode_array_valid;
     uint32_t                    si_tile_mode_array[32];