Skip to content

Commit fa7041d

Browse files
Stylon Wangalexdeucher
authored andcommitted
drm/amd/display: Fix ineffective setting of max bpc property
[Why] Regression was introduced where setting max bpc property has no effect on the atomic check and final commit. It has the same effect as max bpc being stuck at 8. [How] Correctly propagate max bpc with the new connector state. Signed-off-by: Stylon Wang <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 5ae9c37 commit fa7041d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5024,7 +5024,8 @@ create_validate_stream_for_sink(struct amdgpu_dm_connector *aconnector,
50245024
struct drm_connector *connector = &aconnector->base;
50255025
struct amdgpu_device *adev = connector->dev->dev_private;
50265026
struct dc_stream_state *stream;
5027-
int requested_bpc = connector->state ? connector->state->max_requested_bpc : 8;
5027+
const struct drm_connector_state *drm_state = dm_state ? &dm_state->base : NULL;
5028+
int requested_bpc = drm_state ? drm_state->max_requested_bpc : 8;
50285029
enum dc_status dc_result = DC_OK;
50295030

50305031
do {

0 commit comments

Comments
 (0)