drm/amd/display: Revert logic for plane modifiers
authorJoaquín Ignacio Aramendía <samsagax@gmail.com>
Mon, 24 Oct 2022 11:33:59 +0000 (08:33 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 24 Oct 2022 18:46:29 +0000 (14:46 -0400)
commit809734c110548dca410fb0cca52e6b1540319f5e
tree92321684e263866eb46f0552bdb038fd25f3c6b7
parent969758bbf5e9360b63bbb2328ac3fda46bbbc9f5
drm/amd/display: Revert logic for plane modifiers

This file was split in commit 5d945cbcd4b16a29d6470a80dfb19738f9a4319f
("drm/amd/display: Create a file dedicated to planes") and the logic in
dm_plane_format_mod_supported() function got changed by a switch logic.
That change broke drm_plane modifiers setting on series 5000 APUs
(tested on OXP mini AMD 5800U and HP Dev One 5850U PRO)
leading to Gamescope not working as reported on GitHub[1]

To reproduce the issue, enter a TTY and run:

$ gamescope -- vkcube

With said commit applied it will abort. This one restores the old logic,
fixing the issue that affects Gamescope.

[1](https://github.com/Plagman/gamescope/issues/624)

Cc: <stable@vger.kernel.org> # 6.0.x
Signed-off-by: Joaquín Ignacio Aramendía <samsagax@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c