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
This commit is contained in:
Rudolf Cornelissen 2005-05-26 14:38:09 +00:00
parent 5b5ef87b84
commit 1e7ae0559f

View File

@ -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: