Skip to content

Commit 5449e07

Browse files
Shirish Salexdeucher
authored andcommitted
drm/amd/display: update plane params before validation
This patch updates the dc's plane state with the parameters set by the user side. This is needed to validate the plane capabilities with the parameters user space wants to set. Signed-off-by: Shirish S <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 10eee2e commit 5449e07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,6 +3064,9 @@ static int dm_plane_atomic_check(struct drm_plane *plane,
30643064
if (!dm_plane_state->dc_state)
30653065
return 0;
30663066

3067+
if (!fill_rects_from_plane_state(state, dm_plane_state->dc_state))
3068+
return -EINVAL;
3069+
30673070
if (dc_validate_plane(dc, dm_plane_state->dc_state) == DC_OK)
30683071
return 0;
30693072

0 commit comments

Comments
 (0)