提交 1e3d346f 编写于 作者: V Vitaly Prosyak 提交者: Alex Deucher

drm/amd/display: re gamma programming

Fix gamma update logic to avoid crash
Signed-off-by: NVitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 30018e9f
...@@ -1445,7 +1445,8 @@ void dc_update_surfaces_for_target(struct dc *dc, struct dc_surface_update *upda ...@@ -1445,7 +1445,8 @@ void dc_update_surfaces_for_target(struct dc *dc, struct dc_surface_update *upda
} }
} }
if (updates[i].gamma) { if (updates[i].gamma && updates[i].gamma !=
surface->public.gamma_correction) {
if (surface->public.gamma_correction != NULL) if (surface->public.gamma_correction != NULL)
dc_gamma_release(surface->public. dc_gamma_release(surface->public.
gamma_correction); gamma_correction);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册