Since solo always uses fullscreen (?), it shouldn't be much of aOn Thu, 13 Jan 2005, Roland Scheidegger wrote:
Ok, here's a new version. It also contains a supposed patch for mergedfb-pageflip (untested, but I need that for color tiling,
otherwise I'd need to redo the crtc address calculation in the
drm).
This looks great, just an aside question, how much work would it be to get this working with solo considering solo uses radeonfb to set the screen mode not the X DDX...
problem. You'd have to make sure that the (virtual - if there's a distinction between virtual and physical in radeonfb) resolution you use is actually capable of tiling (i.e. no interlace, no doublscan, width a multiple of 256byte, height 16 lines (8 might be enough, tiles are 8 lines high but I'm not sure that this is sufficient)). Then you'd need to hack the crtc registers radeonfb has set to include the tiling bit (and hope radeonfb doesn't touch them again...), and of course use the setparam ioctl to tell the drm you want to use tiling. For direct depth/front/back buffer read/write access (glReadPixels...), you'd also need to set up the surface regs to cover these buffers.
And when leaving, you probably should revert all that, I'd imagine it seriously messes up the console :-).
It could probably be implemented with Xorg when you use the FBDev option similarly, though it's a hack.
That's at least what I think how it might work, I never looked at solo.
Or you could make radeonfb somehow tiling aware maybe, so it does everytghing for you.
I might be able to make some time to hack on it as this sort of performance boost would make a difference to the speed of my embedded
system... and management always like speed boosts... :-)
Dave.
Quake3 is an excellent showcase for this (since it's essentially a fillrate tester), other apps may not show that impressive gains (in fact, for doom3 neither hyperz nor color tiling did anything, and ut2k4 is still slow due to some drawElements deficiencies).
Roland
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
