mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
aea2ef36ce
a/btrfs-progs-4.20.2-x86_64-1.txz: Upgraded. a/openssl-solibs-1.1.1b-x86_64-1.txz: Upgraded. ap/ddrescue-1.24-x86_64-1.txz: Upgraded. ap/sqlite-3.27.2-x86_64-1.txz: Upgraded. l/libssh-0.8.7-x86_64-1.txz: Upgraded. l/talloc-2.1.16-x86_64-1.txz: Upgraded. l/tdb-1.3.18-x86_64-1.txz: Upgraded. l/tevent-0.9.39-x86_64-1.txz: Upgraded. n/ca-certificates-20181210-noarch-2.txz: Rebuilt. Use "c_rehash" rather than "openssl rehash" for compatibility with all versions of OpenSSL. n/epic5-2.1.1-x86_64-1.txz: Upgraded. n/openssl-1.1.1b-x86_64-1.txz: Upgraded. x/xorg-server-1.20.4-x86_64-1.txz: Upgraded. x/xorg-server-xephyr-1.20.4-x86_64-1.txz: Upgraded. x/xorg-server-xnest-1.20.4-x86_64-1.txz: Upgraded. x/xorg-server-xvfb-1.20.4-x86_64-1.txz: Upgraded. xap/mozilla-thunderbird-60.5.2-x86_64-1.txz: Upgraded. This is a bugfix release. For more information, see: https://www.mozilla.org/en-US/thunderbird/60.5.2/releasenotes/
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
From aa2f34d80ef3118eae0cce73b610c36cdcb978fe Mon Sep 17 00:00:00 2001
|
|
From: Ben Skeggs <bskeggs@redhat.com>
|
|
Date: Sat, 22 Apr 2017 02:26:28 +1000
|
|
Subject: [PATCH xserver] xfree86: use modesetting driver by default on GeForce
|
|
8 and newer
|
|
|
|
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
|
|
---
|
|
hw/xfree86/common/xf86pciBus.c | 20 ++++++++++++++++++++
|
|
1 file changed, 20 insertions(+)
|
|
|
|
--- ./hw/xfree86/common/xf86pciBus.c.orig 2019-02-26 13:28:50.000000000 -0600
|
|
+++ ./hw/xfree86/common/xf86pciBus.c 2019-02-26 17:16:04.131096857 -0600
|
|
@@ -37,6 +37,7 @@
|
|
#include <unistd.h>
|
|
#include <X11/X.h>
|
|
#include <pciaccess.h>
|
|
+#include <xf86drm.h>
|
|
#include "os.h"
|
|
#include "Pci.h"
|
|
#include "xf86.h"
|
|
@@ -1191,6 +1192,25 @@
|
|
int idx = 0;
|
|
|
|
#if defined(__linux__) || defined(__NetBSD__)
|
|
+ char busid[32];
|
|
+ int fd;
|
|
+
|
|
+ snprintf(busid, sizeof(busid), "pci:%04x:%02x:%02x.%d",
|
|
+ dev->domain, dev->bus, dev->dev, dev->func);
|
|
+
|
|
+ /* 'modesetting' is preferred for GeForce 8 and newer GPUs */
|
|
+ fd = drmOpenWithType("nouveau", busid, DRM_NODE_RENDER);
|
|
+ if (fd >= 0) {
|
|
+ uint64_t args[] = { 11 /* NOUVEAU_GETPARAM_CHIPSET_ID */, 0 };
|
|
+ int ret = drmCommandWriteRead(fd, 0 /* DRM_NOUVEAU_GETPARAM */,
|
|
+ &args, sizeof(args));
|
|
+ drmClose(fd);
|
|
+ if (ret == 0) {
|
|
+ if (args[1] == 0x050 || args[1] >= 0x80)
|
|
+ break;
|
|
+ }
|
|
+ }
|
|
+
|
|
driverList[idx++] = "nouveau";
|
|
#endif
|
|
driverList[idx++] = "nv";
|