mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-06-29 23:43:21 -04:00
drm/amd/display: Default max bpc to 16 for eDP
[Why] Some 10bit eDP panels don't lightup after we cap bpc to 8. [How] Set default max_bpc to 16 for edp connector type. Signed-off-by: Roman Li <roman.li@amd.com> Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b9f1246df1
commit
4a8ca46bae
1 changed files with 3 additions and 3 deletions
|
@ -5561,9 +5561,9 @@ void amdgpu_dm_connector_init_helper(struct amdgpu_display_manager *dm,
|
||||||
|
|
||||||
drm_connector_attach_max_bpc_property(&aconnector->base, 8, 16);
|
drm_connector_attach_max_bpc_property(&aconnector->base, 8, 16);
|
||||||
|
|
||||||
/* This defaults to the max in the range, but we want 8bpc. */
|
/* This defaults to the max in the range, but we want 8bpc for non-edp. */
|
||||||
aconnector->base.state->max_bpc = 8;
|
aconnector->base.state->max_bpc = (connector_type == DRM_MODE_CONNECTOR_eDP) ? 16 : 8;
|
||||||
aconnector->base.state->max_requested_bpc = 8;
|
aconnector->base.state->max_requested_bpc = aconnector->base.state->max_bpc;
|
||||||
|
|
||||||
if (connector_type == DRM_MODE_CONNECTOR_eDP &&
|
if (connector_type == DRM_MODE_CONNECTOR_eDP &&
|
||||||
dc_is_dmcu_initialized(adev->dm.dc)) {
|
dc_is_dmcu_initialized(adev->dm.dc)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue