Fix one of the hangs on new GeForce cards using a patch from X.Org CVS.

PR:		ports/87160
Submitted by:	Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
This commit is contained in:
Eric Anholt
2005-11-30 07:52:59 +00:00
parent bcd70679f7
commit 4e4688a5ea
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
PORTNAME= xorg-server
PORTVERSION= 6.8.2
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XORG}
MASTER_SITE_SUBDIR= X11R${PORTVERSION}/src
@@ -0,0 +1,22 @@
--- programs/Xserver/hw/xfree86/drivers/nv/nv_hw.c.orig Sat Oct 8 20:13:06 2005
+++ programs/Xserver/hw/xfree86/drivers/nv/nv_hw.c Sat Oct 8 20:14:53 2005
@@ -915,7 +915,7 @@
RIVA_HW_STATE *state
)
{
- int i;
+ int i, j;
pNv->PMC[0x0140/4] = 0x00000000;
pNv->PMC[0x0200/4] = 0xFFFF00FF;
@@ -1162,6 +1162,10 @@
pNv->PGRAPH[0x008C/4] = 0x60de8051;
pNv->PGRAPH[0x0090/4] = 0x00008000;
pNv->PGRAPH[0x0610/4] = 0x00be3c5f;
+
+ j = pNv->REGS[0x1540/4] & 0xff;
+ for(i = 0; !(j & 1); j >>= 1, i++);
+ pNv->PGRAPH[0x5000/4] = i;
if((pNv->Chipset & 0xfff0) == 0x0040) {
pNv->PGRAPH[0x09b0/4] = 0x83280fff;