Userbuffers get hit in the traditional GL vertex array paths, which is pretty common usage. I've been thinking about buffers and uploads a bit recently, and I'm pretty sure we can do better than the current mechanisms.
Also, it makes sense to make the BUFFER_USAGE_ flags stronger - I think it's been a grey area whether they are hints or not. I've been (rightly or wrongly) thinking of them as guarantees for a while, so I certainly won't argue to keep them as hints. I'm pretty sure the SVGA driver treats them as guarantees, for instance, and uses malloc for constant buffers. Keith ________________________________________ From: Corbin Simpson [mostawesomed...@gmail.com] Sent: Saturday, January 30, 2010 4:06 AM To: Mesa3D-Development Subject: [Mesa3d-dev] Grab bag of random questions (whoo) 4) user_buffer_create doesn't appear to see an incredible amount of usage. Would it be too horrible to make *all* buffer allocations delayed, transparently? I ask because apparently the PIPE_BUFFER_USAGE flags (PIXEL, CONSTANT, etc.) are "optimization hints" and not guarantees, which is very annoying since I need to prevent constantbufs from ever becoming BO-backed... ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev