diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 428aae048f4b..33615e2ea2e6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
| @@ -187,7 +187,7 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo) | |||
| 187 | static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo) | 187 | static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo) |
| 188 | { | 188 | { |
| 189 | switch (bo->tbo.mem.mem_type) { | 189 | switch (bo->tbo.mem.mem_type) { |
| 190 | case TTM_PL_TT: return amdgpu_ttm_is_bound(bo->tbo.ttm); | 190 | case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem); |
| 191 | case TTM_PL_VRAM: return true; | 191 | case TTM_PL_VRAM: return true; |
| 192 | default: return false; | 192 | default: return false; |
| 193 | } | 193 | } |
