aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch
new file mode 100644
index 00000000..13db0052
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2599-drm-amd-display-Remove-redundant-condition-in-dml-vb.patch
@@ -0,0 +1,33 @@
+From 7446c06b8e8660f5670debfb04ae174bdd508791 Mon Sep 17 00:00:00 2001
+From: Harry Wentland <harry.wentland@amd.com>
+Date: Fri, 13 Oct 2017 15:12:04 -0400
+Subject: [PATCH 2599/4131] drm/amd/display: Remove redundant condition in dml
+ vba
+
+Found by 0-day
+https://lists.freedesktop.org/archives/dri-devel/2017-October/154698.html
+
+Signed-off-by: Harry Wentland <harry.wentland@amd.com>
+Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
+index a11b37c..117ec11 100644
+--- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
++++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c
+@@ -3463,7 +3463,7 @@ bool Calculate256BBlockSizes(
+ unsigned int *BlockWidth256BytesC)
+ {
+ if ((SourcePixelFormat == dm_444_64 || SourcePixelFormat == dm_444_32
+- || SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16
++ || SourcePixelFormat == dm_444_16
+ || SourcePixelFormat == dm_444_8)) {
+ if (SurfaceTiling == dm_sw_linear) {
+ *BlockHeight256BytesY = 1;
+--
+2.7.4
+