Skip to content

Commit 4b7da34

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]>
1 parent 447f3d0 commit 4b7da34

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
@@ -5049,7 +5049,8 @@ create_validate_stream_for_sink(struct amdgpu_dm_connector *aconnector,
50495049
struct drm_connector *connector = &aconnector->base;
50505050
struct amdgpu_device *adev = connector->dev->dev_private;
50515051
struct dc_stream_state *stream;
5052-
int requested_bpc = connector->state ? connector->state->max_requested_bpc : 8;
5052+
const struct drm_connector_state *drm_state = dm_state ? &dm_state->base : NULL;
5053+
int requested_bpc = drm_state ? drm_state->max_requested_bpc : 8;
50535054
enum dc_status dc_result = DC_OK;
50545055

50555056
do {

0 commit comments

Comments
 (0)