aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-08-28 07:44:32 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-29 13:35:12 -0400
commitefa9a5ef10fbbf500e6b479359dde72947a9799e (patch)
tree39df89f3e5707462efb4e8e60397ef1dfdc9dc1a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentbf47afbabf1cf149f9ebc8e1f7dab6913e360dc4 (diff)
drm/amdgpu: remove amdgpu_bo_gpu_accessible
Not used any more. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index 18945dd6982d..907fdf46d895 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -194,19 +194,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
194} 194}
195 195
196/** 196/**
197 * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that
198 * is accessible to the GPU.
199 */
200static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo)
201{
202 switch (bo->tbo.mem.mem_type) {
203 case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem);
204 case TTM_PL_VRAM: return true;
205 default: return false;
206 }
207}
208
209/**
210 * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM 197 * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
211 */ 198 */
212static inline bool amdgpu_bo_in_cpu_visible_vram(struct amdgpu_bo *bo) 199static inline bool amdgpu_bo_in_cpu_visible_vram(struct amdgpu_bo *bo)