]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: ignore modifiers when checking for format support
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 8 Jun 2022 02:43:42 +0000 (22:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jun 2022 01:38:39 +0000 (21:38 -0400)
commitffed400ff57d91fbc5ebaf341ff1a1377cd70826
tree408bf49df9ae878c1a5d0b772eb296914a2d69eb
parent8842c14723bc0a8df5847e2b8c7236b9d14ee248
drm/amd/display: ignore modifiers when checking for format support

[Why&How]
There are cases where swizzle modes are set but modifiers arent. For
such a userspace, we need not check modifiers while checking
compatibilty in the drm hook for checking plane format.

Ignore checking modifiers but check the DCN generation for the
supported swizzle mode.

v2: squash in unused variable removal (Alex)

Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c