]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Extract 3rd plane from metadata
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 11 Nov 2020 02:48:40 +0000 (03:48 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Nov 2020 22:29:47 +0000 (17:29 -0500)
commit4e5118f37a8e1f274f231746101a3b9be14c491f
tree1c9199623dc6124afb47b968b8cff3f0ccaac50f
parented8e4b3f02fc63a124354a9983ed0aa454533a21
drm/amd/display: Extract 3rd plane from metadata

Now that we actually expose the right number of planes we get
problems with modifier aware libva if we use an unsupported modifier.

So this ensures that we as much as possible use a modifier that
radeonsi can actually render to without going to extreme difficulty
to synchronize an extra DCC metadata plane with implicit sync.

Looking into the opaque metadata isn't ideal but this converts to
something mainly for the purpose of the userspace driver and falls
back properly if it isn't what we expect.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c