diff options
author | Christian König <christian.koenig@amd.com> | 2015-12-18 16:13:12 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-10 14:16:47 -0500 |
commit | 1ea863fd736eed8217a0b7bc5d0bd0de6b267b80 (patch) | |
tree | 1f983a945fd5971de31eeabd51af615b4bbfad39 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 636ce25c30010a8f393f5a1e67d5d4b7b66739e7 (diff) |
drm/amdgpu: keep the prefered/allowed domains in the BO
Stop copying that to the bo list entry, it doesn't change anyway.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index b7056649062a..7410d5bd37b9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -484,8 +484,6 @@ struct amdgpu_bo_list_entry { | |||
484 | struct amdgpu_bo *robj; | 484 | struct amdgpu_bo *robj; |
485 | struct ttm_validate_buffer tv; | 485 | struct ttm_validate_buffer tv; |
486 | struct amdgpu_bo_va *bo_va; | 486 | struct amdgpu_bo_va *bo_va; |
487 | unsigned prefered_domains; | ||
488 | unsigned allowed_domains; | ||
489 | uint32_t priority; | 487 | uint32_t priority; |
490 | }; | 488 | }; |
491 | 489 | ||
@@ -522,7 +520,8 @@ struct amdgpu_bo { | |||
522 | /* Protected by gem.mutex */ | 520 | /* Protected by gem.mutex */ |
523 | struct list_head list; | 521 | struct list_head list; |
524 | /* Protected by tbo.reserved */ | 522 | /* Protected by tbo.reserved */ |
525 | u32 initial_domain; | 523 | u32 prefered_domains; |
524 | u32 allowed_domains; | ||
526 | struct ttm_place placements[AMDGPU_GEM_DOMAIN_MAX + 1]; | 525 | struct ttm_place placements[AMDGPU_GEM_DOMAIN_MAX + 1]; |
527 | struct ttm_placement placement; | 526 | struct ttm_placement placement; |
528 | struct ttm_buffer_object tbo; | 527 | struct ttm_buffer_object tbo; |