diff options
| author | Christian König <[email protected]> | 2018-08-28 11:44:32 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-08-29 17:35:12 +0000 |
| commit | efa9a5ef10fbbf500e6b479359dde72947a9799e (patch) | |
| tree | 39df89f3e5707462efb4e8e60397ef1dfdc9dc1a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | drm/amdkfd: Release an acquired process vm (diff) | |
| download | kernel-efa9a5ef10fbbf500e6b479359dde72947a9799e.tar.gz kernel-efa9a5ef10fbbf500e6b479359dde72947a9799e.zip | |
drm/amdgpu: remove amdgpu_bo_gpu_accessible
Not used any more.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 13 |
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) } /** - * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that - * is accessible to the GPU. - */ -static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo) -{ - switch (bo->tbo.mem.mem_type) { - case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem); - case TTM_PL_VRAM: return true; - default: return false; - } -} - -/** * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM */ static inline bool amdgpu_bo_in_cpu_visible_vram(struct amdgpu_bo *bo) |
