]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add formats for DCC with 2/3 planes.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 8 Jun 2020 12:26:13 +0000 (14:26 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 18:27:23 +0000 (14:27 -0400)
commit63e7104e2d12fb6fe24b5ab3a9136a9f12951bb1
treeab68e6810c20e043a1780c0391627586cdc97f56
parent80a401c88fb22dab9dd154cda2416bd3aa27ad8c
drm/amd/display: Add formats for DCC with 2/3 planes.

For DCC we will use 2/3 planes to avoid X rendering to the frontbuffer
with DCC compressed images. To make this work with the core KMS
validation we need to add extra formats with the extra planes.

However, due to flexibility we set bpp = 0 for the extra planes and
do the validation ourselves.

Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-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.c