From 33441648ba5503967704f69e35fba83147922666 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 30 Mar 2006 15:24:37 +0000 Subject: [PATCH] improved 3D init programming. NV11 gained 44% speed, NV15 gained 21% speed, NV18 and other cards remain at the same speed. These gains (or about) are in all resolutions, all colordepths. If your CPU is fast enough of course. Bumped version to 0.75. There's no doubt about it, if you use 3D, upgrade! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16931 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c | 7 ++++--- src/add-ons/accelerants/nvidia/engine/nv_general.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c b/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c index e6d3b874fb..acfc64a644 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c @@ -1,7 +1,7 @@ /* NV Acceleration functions */ /* Author: - Rudolf Cornelissen 8/2003-2/2006. + Rudolf Cornelissen 8/2003-3/2006. This code was possible thanks to: - the Linux XFree86 NV driver, @@ -599,8 +599,9 @@ status_t nv_acc_init_dma() { /* init some function blocks */ ACCW(DEBUG1, 0x00118700); - /* DEBUG2 has a big influence on 3D speed for NV15 (confirmed) */ - ACCW(DEBUG2, 0x24f82ad9); + /* DEBUG2 has a big influence on 3D speed for NV11 and NV15 + * (confirmed b3 and b18 should both be '1' on both cards!) */ + ACCW(DEBUG2, 0x24fc2ad9); ACCW(DEBUG3, 0x55de0030); /* copy tile setup stuff from 'source' to acc engine */ diff --git a/src/add-ons/accelerants/nvidia/engine/nv_general.c b/src/add-ons/accelerants/nvidia/engine/nv_general.c index 548b72ad63..c7c2d628eb 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_general.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_general.c @@ -91,7 +91,7 @@ status_t nv_general_powerup() { status_t status; - LOG(1,("POWERUP: Haiku nVidia Accelerant 0.74 running.\n")); + LOG(1,("POWERUP: Haiku nVidia Accelerant 0.75 running.\n")); /* log VBLANK INT usability status */ if (si->ps.int_assigned)