mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 06:05:06 +00:00
drm/amd/display: re gamma programming
Fix gamma update logic to avoid crash Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
30018e9fa2
commit
1e3d346f4f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
dc_gamma_release(surface->public.
|
||||
gamma_correction);
|
||||
|
|
Loading…
Add table
Reference in a new issue