Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > f33c4cfc0e55333b80c6bb254dd68789 > files > 5

x11-server-21.1.8-7.mga9.src.rpm

From 389c1c4f9869e8f3c6dbe455fe2de00cf4602bb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Giuseppe=20Ghib=C3=B2?= <ghibo@mageia.org>
Date: Mon, 5 Jun 2023 14:14:56 +0200
Subject: [PATCH] Force modesetting for RaptorLake-P with UHD graphics

When RaptorLake-P runs with RAM in single-channel mode, the Xe
Graphics card is not exposed, and instead it is exposed the UHD
graphics PCI-id (e.g. the PCI-id 0xa7a0 becomes 0xa720). With the
'intel' DDX driver and Iris DRI these are not work correctly with 3D,
resulting some video artifacts, while the modesetting driver instead
works correctly. Force modesetting auto-switching for these two other
IDs when no xorg.conf is provided (probably there are further IDs to
add).

---
 hw/xfree86/common/xf86pciBus.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c
index d83bf5e..3d18c5e 100644
--- a/hw/xfree86/common/xf86pciBus.c
+++ b/hw/xfree86/common/xf86pciBus.c
@@ -1188,6 +1188,9 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
                 case 0xa7a0:
                 case 0xa7a1:
                         /* Use modesetting on RaptorLake-P with Iris Xe Graphics */
+                case 0xa720:
+                case 0xa721:
+                        /* Use modesetting on RaptorLake-P with Iris UHD Graphics */
                         driverList[0] = "modesetting";
                         break;
 		default:
-- 
2.41.0