linux/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 01c22997be drm/amd/display: Calculate bpc based on max_requested_bpc
[Why]
The only place where state->max_bpc is updated on the connector is
at the start of atomic check during drm_atomic_connector_check. It
isn't updated when adding the connectors to the atomic state after
the fact. It also doesn't necessarily reflect the right value when
called in amdgpu during mode validation outside of atomic check.

This can cause the wrong bpc to be used even if the max_requested_bpc
is the correct value.

[How]
Don't rely on state->max_bpc reflecting the real bpc value and just
do the min(...) based on display info bpc and max_requested_bpc.

Fixes: 01933ba42d ("drm/amd/display: Use current connector state if NULL when checking bpc")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-21 22:15:13 -05:00
..
amdgpu_dm drm/amd/display: Calculate bpc based on max_requested_bpc 2019-08-21 22:15:13 -05:00
dc drm/amd/display: Load NV12 SOC BB from firmware 2019-08-15 10:57:42 -05:00
include drm/amd/display: Add Logging for Gamma Related information (2/2) 2019-08-15 10:56:46 -05:00
modules drm/amd/display: Add Logging for Gamma Related information (1/2) 2019-08-15 10:55:55 -05:00
Kconfig drm/amd/display: Add drm_audio_component support to amdgpu_dm 2019-07-11 14:37:24 -05:00
Makefile
TODO