Skip to content

Commit 798cd57

Browse files
airliedtorvalds
authored andcommitted
drm/amd/display: restore code for plane with no modifiers
When this file was split in commit 5d945cb ("drm/amd/display: Create a file dedicated to planes") this chunk seemed to get dropped. Linus noticed on this rx580 and I've reproduced on FIJI which makes sense as these are pre-modifier GPUs. With this applied, I get gdm back. Fixes: 5d945cb ("drm/amd/display: Create a file dedicated to planes") Signed-off-by: Dave Airlie <airlied@redhat.com> Reported-and-tested-by: Linus Torvalds <torvalds@linux-foundation.org> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b44f2fd commit 798cd57

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,9 @@ int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm,
15911591
if (res)
15921592
return res;
15931593

1594+
if (modifiers == NULL)
1595+
adev_to_drm(dm->adev)->mode_config.fb_modifiers_not_supported = true;
1596+
15941597
res = drm_universal_plane_init(adev_to_drm(dm->adev), plane, possible_crtcs,
15951598
&dm_plane_funcs, formats, num_formats,
15961599
modifiers, plane->type, NULL);

0 commit comments

Comments
 (0)