]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/amdgpu: Use GTT for dumb buffer if sg display enabled (v2)
authorDeepak Sharma <Deepak.Sharma@amd.com>
Tue, 22 May 2018 22:31:23 +0000 (15:31 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 18:17:35 +0000 (13:17 -0500)
commitbda31a24dc5c03fd76832c4d672fba8355e3aa44
tree0ee8b4309e6a5b7de95eaa96183a6eddb529351f
parent7bee0572e31f1f5963ecc19d55f64f384d0b155b
drm/amdgpu: Use GTT for dumb buffer if sg display enabled (v2)

When vram size <= THRESHOLD(256M) lets use GTT for dumb buffer
allocation. As SG will be enabled with vram size <= 256M
scan out will not be an issue.

v2: Use amdgpu_display_supported_domains to get supported domain.

Signed-off-by: Deepak Sharma <Deepak.Sharma@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c