提交 4d128c2f 编写于 作者: J Jerry Zuo 提交者: Alex Deucher

drm/amd/display: Add surface to dm_plane_state if fb reserve fails

Signed-off-by: NJerry Zuo <Jerry.Zuo@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 6dd28867
......@@ -4707,6 +4707,11 @@ int amdgpu_dm_atomic_check(struct drm_device *dev,
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,
......@@ -4716,12 +4721,6 @@ int amdgpu_dm_atomic_check(struct drm_device *dev,
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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册