Skip to content

Commit

Permalink
drm/amd/display: restore code for plane with no modifiers
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reported-and-tested-by: Linus Torvalds <[email protected]>
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
airlied authored and torvalds committed Aug 4, 2022
1 parent b44f2fd commit 798cd57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,9 @@ int amdgpu_dm_plane_init(struct amdgpu_display_manager *dm,
if (res)
return res;

if (modifiers == NULL)
adev_to_drm(dm->adev)->mode_config.fb_modifiers_not_supported = true;

res = drm_universal_plane_init(adev_to_drm(dm->adev), plane, possible_crtcs,
&dm_plane_funcs, formats, num_formats,
modifiers, plane->type, NULL);
Expand Down

0 comments on commit 798cd57

Please sign in to comment.