]> Git Repo - linux.git/commitdiff
drm/amdgpu: Use gmc_vram_full_visible in vram_mgr_bo_invisible_size
authorMichel Dänzer <[email protected]>
Fri, 15 Jun 2018 14:37:03 +0000 (16:37 +0200)
committerAlex Deucher <[email protected]>
Thu, 5 Jul 2018 21:39:49 +0000 (16:39 -0500)
Signed-off-by: Michel Dänzer <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c

index b6333f92ba4565e9b5949f48e643f2d47daaa2a0..f7a4bd5885a399e20fc3a5a7b1fecd3c02674d9a 100644 (file)
@@ -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)
This page took 0.058187 seconds and 4 git commands to generate.