Skip to content

Commit 1223c15

Browse files
Evan Quanalexdeucher
authored andcommitted
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: 087451f ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.") Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 37ba5bb commit 1223c15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,8 @@ int amdgpu_mode_dumb_create(struct drm_file *file_priv,
911911
struct drm_gem_object *gobj;
912912
uint32_t handle;
913913
u64 flags = AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
914-
AMDGPU_GEM_CREATE_CPU_GTT_USWC;
914+
AMDGPU_GEM_CREATE_CPU_GTT_USWC |
915+
AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS;
915916
u32 domain;
916917
int r;
917918

0 commit comments

Comments
 (0)