OSDN Git Service

drm/amd/display: Make FBC work without fbdev emulation
authorRoman Li <Roman.Li@amd.com>
Tue, 6 Feb 2018 23:47:26 +0000 (18:47 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:12 +0000 (14:20 -0500)
commit3e332d3a5a64353de970659571f9e474c709095c
tree6472d553303b713890230f6a495905a8a7ee4d37
parentb0c4e977522c34e20ad54ff4ca104129a7cfdeca
drm/amd/display: Make FBC work without fbdev emulation

Previously, FBC dynamic allocation relied on connector modes
populated during dm init. This is only the case if
DRM_FBDEV_EMULATION config flag is enabled.
Moving fbc allocation from dm_late_init() to
amdgpu_dm_connector_get_modes() where actual modes init happens.

Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Shirish Shankarappa <Shirish.S@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c