mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
drm/amdgpu: Use gmc_vram_full_visible in vram_mgr_bo_invisible_size
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
280cf1a94b
commit
9735bf1930
@ -112,7 +112,7 @@ u64 amdgpu_vram_mgr_bo_invisible_size(struct amdgpu_bo *bo)
|
||||
unsigned pages = mem->num_pages;
|
||||
u64 usage = 0;
|
||||
|
||||
if (adev->gmc.visible_vram_size == adev->gmc.real_vram_size)
|
||||
if (amdgpu_gmc_vram_full_visible(&adev->gmc))
|
||||
return 0;
|
||||
|
||||
if (mem->start >= adev->gmc.visible_vram_size >> PAGE_SHIFT)
|
||||
|
Loading…
Reference in New Issue
Block a user