aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch
new file mode 100644
index 00000000..23e25c88
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3917-drm-amd-display-Allow-truncation-to-10-bits.patch
@@ -0,0 +1,45 @@
+From e1dcb347cefe3ddf2cafbb95761adcb46b9f96bd Mon Sep 17 00:00:00 2001
+From: Mikita Lipski <mikita.lipski@amd.com>
+Date: Wed, 7 Mar 2018 10:49:23 -0500
+Subject: [PATCH 3917/4131] drm/amd/display: Allow truncation to 10 bits
+
+The truncation isn't being programmed if the truncation
+depth is set to 2, it causes an issue with dce11.2 asic
+using 6bit eDP panel. It required to truncate 12:10 in order to
+perform spatial dither 10:6.
+
+This change will allow 12:10 truncation to be enabled.
+
+Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
+Reviewed-by: Jun Lei <Jun.Lei@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
+index 3931412..f19de13 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c
+@@ -128,8 +128,7 @@ static void set_truncation(
+ return;
+ }
+ /* on other format-to do */
+- if (params->flags.TRUNCATE_ENABLED == 0 ||
+- params->flags.TRUNCATE_DEPTH == 2)
++ if (params->flags.TRUNCATE_ENABLED == 0)
+ return;
+ /*Set truncation depth and Enable truncation*/
+ REG_UPDATE_3(FMT_BIT_DEPTH_CONTROL,
+@@ -144,7 +143,7 @@ static void set_truncation(
+ /**
+ * set_spatial_dither
+ * 1) set spatial dithering mode: pattern of seed
+- * 2) set spatical dithering depth: 0 for 18bpp or 1 for 24bpp
++ * 2) set spatial dithering depth: 0 for 18bpp or 1 for 24bpp
+ * 3) set random seed
+ * 4) set random mode
+ * lfsr is reset every frame or not reset
+--
+2.7.4
+