[Mesa-dev] [PATCH] gallium: unify transfer functions

Jose Fonseca jfonseca at vmware.com
Thu Oct 11 08:13:22 PDT 2012



----- Original Message -----
> Hi,
> 
> this is actually a very small cleanup that got unexpectedly big. I
> really underestimated the size of gallium.
> 
> It's part of the plan discussed here:
> http://www.mail-archive.com/mesa-dev@lists.freedesktop.org/msg17930.html
> 
> The idea is that get_transfer+transfer_map is folded into
> transfer_map, and transfer_unmap+transfer_destroy is folded into
> transfer_unmap. transfer_map must create and return the transfer
> object and transfer_unmap must destroy it. transfer_map is successful
> if the returned buffer pointer is not NULL. If transfer_map fails,
> the
> pointer to the transfer object remains unchanged (i.e. doesn't have
> to
> be NULL).

I've skimmed through the parts that interest me the most and it looks good.

Thanks for doing this, Marek.

Jose


More information about the mesa-dev mailing list