From e39eb8b8c1a79d04f90a195351c4eec3dba0d612 Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Wed, 28 Sep 2005 17:18:02 +0000 Subject: Bug #3333 Patch #3417 Fix a hang during screen-to-screen blits on certain GeForce 6xxx and Quadro FX 540 graphics cards. --- src/nv_hw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nv_hw.c b/src/nv_hw.c index b474074..cd7ee5a 100644 --- a/src/nv_hw.c +++ b/src/nv_hw.c @@ -919,7 +919,7 @@ void NVLoadStateExt ( RIVA_HW_STATE *state ) { - int i; + int i, j; pNv->PMC[0x0140/4] = 0x00000000; pNv->PMC[0x0200/4] = 0xFFFF00FF; @@ -1172,6 +1172,10 @@ void NVLoadStateExt ( 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; pNv->PGRAPH[0x09b4/4] = 0x000000a0; -- cgit v1.2.1