[Mesa-dev] [PATCH v2 9/9] gbm: Add map/unmap functions

Eric Anholt eric at anholt.net
Fri May 6 17:44:16 UTC 2016


Rob Herring <robh at kernel.org> writes:

> This adds map and unmap functions to GBM utilizing the DRIimage extension
> mapImage/unmapImage functions or existing internal mapping for dumb
> buffers. Unlike prior attempts, this version provides a region to map and
> usage flags for the mapping. The operation follows the same semantics as
> the gallium transfer_map() function.
>
> This was tested with GBM based gralloc on Android.
>
> This still creates a context, but I've moved it into gbm_create_device
> rather than in the map function. This should remove any need for reference
> counting and problems with memory leaks.

This last bit of commit message is stale.  With that dropped, and the
other whitespace nit fixed, this series is:

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160506/f769fa95/attachment.sig>


More information about the mesa-dev mailing list