OSDN Git Service

drm/amd/display: Set DC options from modifiers.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 8 Jun 2020 11:46:06 +0000 (13:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 18:27:23 +0000 (14:27 -0400)
commit37384b3f17cdedf60ff02f189d7dbb82add0da2c
tree5b5481e8491fb7ffc1daa4970d1776f9f8a0c256
parenta32419911f0a830db8918f6d849e0d7b4a057705
drm/amd/display: Set DC options from modifiers.

This sets the DC tiling options from the modifier, if modifiers
are used for the FB. This patch by itself does not expose the
support yet though.

There is not much validation yet to limit the scope of this
patch, but the current validation is at the same level as
the BO metadata path.

v2: Add modifier check to should_reset_plane.

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