]> www.infradead.org Git - users/willy/xarray.git/commit
drm/amdgpu: update the domain flags for dumb buffer creation
authorEvan Quan <evan.quan@amd.com>
Fri, 12 Nov 2021 07:51:25 +0000 (15:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 19:06:53 +0000 (14:06 -0500)
commit1223c15c780bc967e150204ec11992f39fdc85d5
treed431ff8911d7804e4943c652ba049135a88479f2
parent37ba5bbc89787aa6029266fef771ce1fc7f596ae
drm/amdgpu: update the domain flags for dumb buffer creation

After switching to generic framebuffer framework, we rely on the
->dumb_create routine for frame buffer creation. However, the
different domain flags used are not optimal. Add the contiguous
flag to directly allocate the scanout BO as one linear buffer.

Fixes: 087451f372bf76 ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c