OSDN Git Service

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)
commit5089c4a8ebea3c3ad9eedf038dad7098ebc06131
tree408bf49df9ae878c1a5d0b772eb296914a2d69eb
parentf2a5002541d0698509d4f3adfbfcc55a9c1e2dd1
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