]> 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)
commit548a3b740caadc72d4c9ef07af3a7c8cfbe443ab
treeab68e6810c20e043a1780c0391627586cdc97f56
parent484f629848220b815028590f834a8d37de441cf2
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