diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index 90eab1c31027..126df03a7066 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h @@ -223,10 +223,10 @@ static inline bool amdgpu_bo_in_cpu_visible_vram(struct amdgpu_bo *bo)  	struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);  	struct amdgpu_res_cursor cursor; -	if (bo->tbo.mem.mem_type != TTM_PL_VRAM) +	if (bo->tbo.resource->mem_type != TTM_PL_VRAM)  		return false; -	amdgpu_res_first(&bo->tbo.mem, 0, amdgpu_bo_size(bo), &cursor); +	amdgpu_res_first(bo->tbo.resource, 0, amdgpu_bo_size(bo), &cursor);  	while (cursor.remaining) {  		if (cursor.start < adev->gmc.visible_vram_size)  			return true; | 
