mirror of
https://github.com/torvalds/linux.git
synced 2026-04-30 12:32:31 -04:00
Merge branch 'drm-next-4.19' of git://people.freedesktop.org/~agd5f/linux into drm-next
First feature request for 4.19. Highlights: - Add initial amdgpu documentation - Add initial GPU scheduler documention - GPU scheduler fixes for dying processes - Add support for the JPEG engine on VCN - Switch CI to use powerplay by default - EDC support for CZ - More powerplay cleanups - Misc DC fixes Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180621161138.3008-1-alexander.deucher@amd.com
This commit is contained in:
@@ -347,7 +347,6 @@ static void hotplug_notify_work_func(struct work_struct *work)
|
||||
drm_kms_helper_hotplug_event(dev);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_DC_FBC)
|
||||
/* Allocate memory for FBC compressed data */
|
||||
static void amdgpu_dm_fbc_init(struct drm_connector *connector)
|
||||
{
|
||||
@@ -388,7 +387,6 @@ static void amdgpu_dm_fbc_init(struct drm_connector *connector)
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/* Init display KMS
|
||||
@@ -3426,12 +3424,15 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
|
||||
struct edid *edid = amdgpu_dm_connector->edid;
|
||||
|
||||
encoder = helper->best_encoder(connector);
|
||||
amdgpu_dm_connector_ddc_get_modes(connector, edid);
|
||||
amdgpu_dm_connector_add_common_modes(encoder, connector);
|
||||
|
||||
#if defined(CONFIG_DRM_AMD_DC_FBC)
|
||||
if (!edid || !drm_edid_is_valid(edid)) {
|
||||
drm_add_modes_noedid(connector, 640, 480);
|
||||
} else {
|
||||
amdgpu_dm_connector_ddc_get_modes(connector, edid);
|
||||
amdgpu_dm_connector_add_common_modes(encoder, connector);
|
||||
}
|
||||
amdgpu_dm_fbc_init(connector);
|
||||
#endif
|
||||
|
||||
return amdgpu_dm_connector->num_modes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user