From 1e7ae0559fe5f4df94072d71ad6f99447968fe02 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 26 May 2005 14:38:09 +0000 Subject: [PATCH] forgot to tell the DMA cmd fetch engine it may write-back as well as read. Seems to not have influence on speed, as expected I'd say. Anyway: just tried enabling AGP transfers for cmd fetches: that actually works over here!. I just saw GLteapot spinning at over 400fps because of it. Note however that this doesn't mean we can reach that speed with a local DMA command buffer: the real reason for the higher speed might be the large size (1Mb compared to 32kB). testing some more.. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12844 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 1411abb543..82385dcc5a 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_acc_dma.c @@ -397,10 +397,11 @@ status_t nv_acc_init_dma() { /* DMA target node is PCI */ ACCW(PR_CTX0_A, 0x00023002); +// ACCW(PR_CTX0_A, 0x00033002);//AGP /* point at the DMA buffer via main system memory */ // ACCW(PR_CTX2_A, (ACCR(PR_CTX2_A) + // (((uint32)((uint8 *)(si->framebuffer_pci))) & 0xfffff000))); - ACCW(PR_CTX2_A, ((uint32)((uint8 *)(si->dma_buffer_pci)))); + ACCW(PR_CTX2_A, (((uint32)((uint8 *)(si->dma_buffer_pci))) | 0x00000002)); } //3D stuff: