From 64387ce067e08879e41b411903f27a2654f96c33 Mon Sep 17 00:00:00 2001 From: Giuseppe Ghibo <ghibo@mageia.org> Date: Wed, 24 May 2023 23:45:50 +0200 Subject: [PATCH] Force modesetting for AlderLake-P and RaptorLake-P with Xe graphics On Intel AlderLake-P and RaptorLake-P CPUs with Xe graphics, the intel DDX driver with Iris DRI actually doesn't work correctly with 3D graphics, while the modesetting driver does. Force modesetting auto-switching for these cards when no xorg.conf is provided. --- hw/xfree86/common/xf86pciBus.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hw/xfree86/common/xf86pciBus.c b/hw/xfree86/common/xf86pciBus.c index aeeed8b..d83bf5e 100644 --- a/hw/xfree86/common/xf86pciBus.c +++ b/hw/xfree86/common/xf86pciBus.c @@ -1174,6 +1174,22 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md) case 0x0bef: /* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */ break; + case 0x46a0: + case 0x46a6: + case 0x46a8: + case 0x46aa: + case 0x46b0: + case 0x46b1: + case 0x46b6: + case 0x46b8: + case 0x46ba: + case 0x46c1: + /* Use modesetting on AlderLake-P with Iris Xe Graphics */ + case 0xa7a0: + case 0xa7a1: + /* Use modesetting on RaptorLake-P with Iris Xe Graphics */ + driverList[0] = "modesetting"; + break; default: driverList[0] = "intel"; break; -- 2.40.1