drm/amdgpu: set the contiguous flag if possible
authorChristian König <christian.koenig@amd.com>
Tue, 27 Apr 2021 09:17:59 +0000 (11:17 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:32:14 +0000 (22:32 -0400)
commitabf91e0d33166ba1afcf10e239aec966275da3c1
treec5aed0a9f84d6ad876676bccd4e6e92fa646c0c0
parent2b77ade8b90f292849a5d8fa75c063fdb70bb815
drm/amdgpu: set the contiguous flag if possible

This avoids reallocating scanout BOs on first pin in a lot of cases.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Tested-by: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c