Skip to content

Commit

Permalink
x11-drivers/xf86-video-nv: Update to 2.1.22
Browse files Browse the repository at this point in the history
Also fix regression from df10dce [1]

PR:		270869, 270509 [1]
Approved by:	x11 (manu)
  • Loading branch information
TijlCoosemans committed Apr 16, 2023
1 parent a3089fc commit 9fa263c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
5 changes: 2 additions & 3 deletions x11-drivers/xf86-video-nv/Makefile
@@ -1,12 +1,11 @@
PORTNAME= xf86-video-nv
PORTVERSION= 2.1.21
PORTREVISION= 5
PORTVERSION= 2.1.22
CATEGORIES= x11-drivers

MAINTAINER= x11@FreeBSD.org
COMMENT= X.Org nv display driver
WWW= https://www.x.org/

USES= xorg-cat:driver
USES= tar:xz xorg-cat:driver

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions x11-drivers/xf86-video-nv/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1484715801
SHA256 (xorg/driver/xf86-video-nv-2.1.21.tar.bz2) = 1f98649e6ff0e8214b9d5dcac661f1d004be8e73823d8247b9c7025fd81db32d
SIZE (xorg/driver/xf86-video-nv-2.1.21.tar.bz2) = 424091
TIMESTAMP = 1681571410
SHA256 (xorg/driver/xf86-video-nv-2.1.22.tar.xz) = 6218932db5c389878d853b11b8fbb667c321b65276f55aa6842a56fb1a30d288
SIZE (xorg/driver/xf86-video-nv-2.1.22.tar.xz) = 354708
19 changes: 18 additions & 1 deletion x11-drivers/xf86-video-nv/files/patch-src-nv_driver.c
@@ -1,6 +1,23 @@
--- src/nv_driver.c.orig 2017-01-17 22:41:33 UTC
+++ src/nv_driver.c
@@ -1543,7 +1543,11 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
@@ -911,6 +911,8 @@ NVPciProbe(DriverPtr drv, int entity, struct pci_devic
NVGetPCIXpressChip(dev) : dev->vendor_id << 16 | dev->device_id;
const char *name = xf86TokenToString(NVKnownChipsets, id);

+#ifndef __FreeBSD__
+ /* FreeBSD always has vgapci driver attached. */
if (pci_device_has_kernel_driver(dev)) {
xf86DrvMsg(0, X_ERROR,
NV_NAME ": The PCI device 0x%x (%s) at %2.2d@%2.2d:%2.2d:%1.1d has a kernel module claiming it.\n",
@@ -919,6 +921,7 @@ NVPciProbe(DriverPtr drv, int entity, struct pci_devic
NV_NAME ": This driver cannot operate until it has been unloaded.\n");
return FALSE;
}
+#endif

if(dev->vendor_id == PCI_VENDOR_NVIDIA && !name &&
!NVIsSupported(id) && !NVIsG80(id)) {
@@ -1543,7 +1546,11 @@ NVPreInit(ScrnInfoPtr pScrn, int flags)
xf86FreeInt10(pNv->pInt);
return FALSE;
}
Expand Down
14 changes: 0 additions & 14 deletions x11-drivers/xf86-video-nv/files/patch-src_riva__xaa.c

This file was deleted.

0 comments on commit 9fa263c

Please sign in to comment.