[Mesa-dev] Gallium proposal: add a user pointer in pipe_resource

Christoph Bumiller 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
> here:
> http://cgit.freedesktop.org/~mareko/mesa/commit/?h=vbuf-mgr&id=94a53b672dd238e6a50bb6b252614dc2e9f30ddf
> <http://cgit.freedesktop.org/%7Emareko/mesa/commit/?h=vbuf-mgr&id=94a53b672dd238e6a50bb6b252614dc2e9f30ddf>
>
> And the corresponding branch is here:
> http://cgit.freedesktop.org/~mareko/mesa/log/?h=vbuf-mgr
> <http://cgit.freedesktop.org/%7Emareko/mesa/log/?h=vbuf-mgr>
>
> 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
> buffers.
>
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.

Thanks.
> --
> 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
> Marek
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110131/519e99e2/attachment.htm>


More information about the mesa-dev mailing list