drm/amd/display: Check plane scaling against format specific hw plane caps.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Mon, 28 Dec 2020 18:50:58 +0000 (19:50 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jan 2021 16:35:15 +0000 (11:35 -0500)
commit6300b3bd9d0d7afaf085dd086ce6258511c3f057
treeafb6cc4c9023198dace1568c0dd65d8f29e943b0
parentb8c415e3bf989be1b749409951debe6b36f5c78c
drm/amd/display: Check plane scaling against format specific hw plane caps.

This takes hw constraints specific to pixel formats into account,
e.g., the inability of older hw to scale fp16 format framebuffers.

It should now allow safely to enable fp16 formats also on DCE-8,
DCE-10, DCE-11.0

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c