linux_dsm_epyc7002/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 42ba01fc30 drm/amd/display: Use new connector state when getting color depth
[Why]
The current state on the connector is queried when getting the max bpc
rather than the new state. This means that a new max bpc value can only
currently take effect on the commit *after* it changes.

The new state should be passed in instead.

[How]
Pass down the dm_state as drm state to where we do color depth lookup.

The passed in state can still be NULL when called from
amdgpu_dm_connector_mode_valid, so make sure that we have reasonable
defaults in place. That should probably be addressed at some point.

This change now (correctly) causes a modeset to occur when changing the
max bpc for a connector.

v2: Drop extra TODO.

Cc: Leo Li <sunpeng.li@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-05-24 12:25:56 -05:00
..
amdgpu_dm drm/amd/display: Use new connector state when getting color depth 2019-05-24 12:25:56 -05:00
dc gpu: fix typos in code comments 2019-05-24 12:21:01 -05:00
include drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
modules drm/amd/display: Use VCP for extended colorimetry 2019-05-24 12:21:00 -05:00
Kconfig drm/amd/display: Drop DCN1_01 guards 2019-05-24 12:20:59 -05:00
Makefile drm/amd/display: Load DMCU IRAM 2018-11-26 15:47:53 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00