Signed-off-by: Jerry Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
dc_plane_state = dc_create_plane_state(dc);
+ if (dm_plane_state->dc_state)
+ dc_plane_state_release(dm_plane_state->dc_state);
+
+ dm_plane_state->dc_state = dc_plane_state;
+
ret = fill_plane_attributes(
plane_crtc->dev->dev_private,
dc_plane_state,
if (ret)
goto fail;
-
- if (dm_plane_state->dc_state)
- dc_plane_state_release(dm_plane_state->dc_state);
-
- dm_plane_state->dc_state = dc_plane_state;
-
add_val_sets_plane(set,
set_count,
new_acrtc_state->stream,