OSDN Git Service

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)
commit1331e6304f5d924a8dee18064f56f13c890cb009
tree1c9199623dc6124afb47b968b8cff3f0ccaac50f
parent816853f9dc4057b6c7ee3c45ca9bd5905649092e
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