The file radeon_dri.c sets several defaults in the radeon's private data.....
ctx->driverPrivate = (void *)info;
info->gartFastWrite = RADEON_DEFAULT_AGP_FAST_WRITE;
info->gartSize = RADEON_DEFAULT_AGP_SIZE;
info->gartTexSize = RADEON_DEFAULT_AGP_TEX_SIZE;
info->bufSize = RADEON_DEFAULT_BUFFER_SIZE;
info->ringSize = RADEON_DEFAULT_RING_SIZE;
info->page_flip_enable = RADEON_DEFAULT_PAGE_FLIP;
There seems to be no way to configure my r200 to do page flipping! I've hacked the last line above to force page_flip_enable=1, and the page flipping seems to work with my tests, but this begs the question -
Is there some other reason that page flipping is disabled (and cannot be re-enabled by configuration settings)? In other words, will the driver fail miserably under some conditions which I have not tried?
I am using mesa linux-solo and radeonfb (miniglx). My application requires strict phase-locking with the video refresh rate. I can achieve this without page flipping, but the back-to-front buffer copy takes too long and I get a tear. Page flipping cleans this up nicely and my app happily marches in lockstep with the video refresh, no tears, just like the baby shampoo.
I'd like to add a setting to miniglx.conf, enablePageFlip - something like I can put in my xorg.conf under my r200's "Device" section. I'd be glad to submit a patch if someone can give me a little guidance on the mechanics of creating the patch.
I think quite simply no-one's taken the time to pull the pageflipping code into mesa-solo and/or test it - so it looks like you get the honor...
I'd like to see this controlled by an option in the config file rather than forcing one behaviour or another. I'd also like to know that multiple apps continue to play nicely together (as much as they ever did).
To get a patch from your local tree, "cvs diff -u" should do the trick.
Keith
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel
