[Mesa-dev] Gallium proposal: add a user pointer in pipe_resource
e0425955 at student.tuwien.ac.at
Mon Jan 31 11:48:03 PST 2011
On 31.01.2011 19:46, Marek Olšák wrote:
> 1) New vertex buffer manager
> This is how I'd like to put the burden of uploading user buffers out
> of the drivers. I've made a new vertex buffer manager. It can be found
> And the corresponding branch is here:
> It's a module that drivers can use and it does 2 things:
> - uploads user buffers
> - takes care of converting unsupported vertex formats and unaligned
> vertex layouts to supported ones (there are vertex fetcher capability
> bits, see struct u_vbuf_caps)
> Besides some typos in a few commits, this work is already done.
> With this manager, the drivers don't have to deal with user buffers
> when they are bound as vertex buffers. They only get real hardware
Please do *not* take away my user buffers and put user vertex arrays at
the mercy of a state tracker !
In the DrawArrays case I usually use util/translate and interleave them
letting it write directly into my command buffer for immediate mode
vertex data submission.
> So this all is my current plan to simplify hardware drivers a bit and
> add some nice optimizations. Another option would be to move the new
> vertex buffer manager or something equivalent to the state tracker and
> remove user buffers from the Gallium interface, but that would be
> additional work with uncertain performance implications, so I decided
> not to take this path (for now).
> Best regards
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mesa-dev