]> 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)
commitdfbbfe3c17651fa0fcf2658fb90317df08e52bb2
treeab68e6810c20e043a1780c0391627586cdc97f56
parent37384b3f17cdedf60ff02f189d7dbb82add0da2c
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