]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: remove duplicate format modifier
authorErik Kurzinger <ekurzinger@gmail.com>
Tue, 10 Feb 2026 20:08:15 +0000 (15:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:39:13 +0000 (10:39 -0400)
commit6736c8ff9d63e847a3b694aeaeb78d4e8ad42464
tree9ab8bf9b7775dd602420f067127527ca600c9e15
parentc955e99a060e4dc94228abe5cf63edd1e09754f2
drm/amd/display: remove duplicate format modifier

amdgpu_dm_plane_get_plane_modifiers always adds DRM_FORMAT_MOD_LINEAR to
the list of modifiers. However, with gfx12,
amdgpu_dm_plane_add_gfx12_modifiers also adds that modifier to the list.
So we end up with two copies. Most apps just ignore this but some
(Weston) don't like it.

As a fix, we change amdgpu_dm_plane_add_gfx12_modifiers to not add
DRM_FORMAT_MOD_LINEAR to the list, matching the behavior of analogous
functions for other chips.

Signed-off-by: Erik Kurzinger <ekurzinger@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c