diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0061-drm-amd-display-re-gamma-programming.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0061-drm-amd-display-re-gamma-programming.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0061-drm-amd-display-re-gamma-programming.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0061-drm-amd-display-re-gamma-programming.patch new file mode 100644 index 00000000..8ddbee09 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0061-drm-amd-display-re-gamma-programming.patch @@ -0,0 +1,32 @@ +From 25a5f43de1e6e42660b63e30772098d739b028c7 Mon Sep 17 00:00:00 2001 +From: Vitaly Prosyak <vitaly.prosyak@amd.com> +Date: Tue, 13 Dec 2016 14:23:16 -0600 +Subject: [PATCH 0061/4131] 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> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index 75b6e40..9a35e3b 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -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); +-- +2.7.4 + |