aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch
new file mode 100644
index 00000000..b2564fa3
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3263-drm-amd-display-Force-full-update-on-pixel_format_ch.patch
@@ -0,0 +1,49 @@
+From 4517a744256fb7eb551d44e5fcd2bd367c9f6d71 Mon Sep 17 00:00:00 2001
+From: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
+Date: Wed, 10 Jan 2018 17:40:32 -0500
+Subject: [PATCH 3263/4131] drm/amd/display: Force full update on
+ pixel_format_change
+
+Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 1 +
+ drivers/gpu/drm/amd/display/dc/dc.h | 2 +-
+ 2 files 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 0f3052d6..11f90dd 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1105,6 +1105,7 @@ static enum surface_update_type get_plane_info_update_type(const struct dc_surfa
+
+ if (update_flags->bits.rotation_change
+ || update_flags->bits.stereo_format_change
++ || update_flags->bits.pixel_format_change
+ || update_flags->bits.gamma_change
+ || update_flags->bits.bpp_change
+ || update_flags->bits.bandwidth_change
+diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
+index e93e23e..eb7dad0 100644
+--- a/drivers/gpu/drm/amd/display/dc/dc.h
++++ b/drivers/gpu/drm/amd/display/dc/dc.h
+@@ -213,6 +213,7 @@ struct dc_debug {
+ bool vsr_support;
+ bool performance_trace;
+ bool az_endpoint_mute_only;
++ bool always_use_regamma;
+ };
+ struct dc_state;
+ struct resource_pool;
+@@ -495,7 +496,6 @@ struct dc_surface_update {
+ /* following updates require alloc/sleep/spin that is not isr safe,
+ * null means no updates
+ */
+- /* gamma TO BE REMOVED */
+ struct dc_gamma *gamma;
+ enum color_transfer_func color_input_tf;
+ struct dc_transfer_func *in_transfer_func;
+--
+2.7.4
+