summaryrefslogtreecommitdiff
path: root/SOURCES/0001-amd-hdr.patch
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2023-12-15 11:19:45 +0100
committerJan200101 <sentrycraft123@gmail.com>2023-12-15 11:19:45 +0100
commit0a3aa99cf0cf00c4d7e22dc17827227ca7b5312b (patch)
tree8cdc03902d895ae14e7b946148618b268a957b9d /SOURCES/0001-amd-hdr.patch
parent8698ba5cc4f124355878e48918870a13371dbe7f (diff)
downloadkernel-fsync-0a3aa99cf0cf00c4d7e22dc17827227ca7b5312b.tar.gz
kernel-fsync-0a3aa99cf0cf00c4d7e22dc17827227ca7b5312b.zip
kernel 6.6.6
Diffstat (limited to 'SOURCES/0001-amd-hdr.patch')
-rw-r--r--SOURCES/0001-amd-hdr.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/SOURCES/0001-amd-hdr.patch b/SOURCES/0001-amd-hdr.patch
index 6c0deff..b5e6391 100644
--- a/SOURCES/0001-amd-hdr.patch
+++ b/SOURCES/0001-amd-hdr.patch
@@ -2120,3 +2120,33 @@ index ea1b639bc..cea5653e4 100644
--
2.43.0
+From b693994eaf80dbea585322b8f2d34c7a1801268e Mon Sep 17 00:00:00 2001
+From: Joshua Ashton <joshua@froggi.es>
+Date: Thu, 14 Dec 2023 22:39:09 +0000
+Subject: [PATCH] drm/amd/display: Don't create color properties on asics <
+ SIENNA_CICHLID
+
+Most of these features are not supported on older ASICs.
+
+Signed-off-by: Joshua Ashton <joshua@froggi.es>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
+index 86a2d449cf07..99bdf9758323 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c
+@@ -191,6 +191,9 @@
+ {
+ struct drm_property *prop;
+
++ if (adev->asic_type < CHIP_SIENNA_CICHLID)
++ return 0;
++
+ prop = drm_property_create(adev_to_drm(adev),
+ DRM_MODE_PROP_BLOB,
+ "VALVE1_PLANE_DEGAMMA_LUT", 0);
+
+--
+2.43.0