[Mesa-dev] [PATCH] Initial support for EXT_external_objects

Andres Rodriguez andresx7 at gmail.com
Fri Jun 30 23:02:53 UTC 2017


This series is an initial step towards the implementation of
EXT_external_objects. It implements the functionality under
EXT_memory_object and EXT_memory_object_fd. 

Note that in this family of cross-API extensions, GL is a consumer only.
Therefore, only import entrypoints are defined in the spec. 

This is my first mesa GL extension, so any feedback you have is welcome.  I'm
most likely guilty of at least one faux pas somewhere in this series.

If anyone has any suggestions on a better approach for populating device UUIDs
please let me know. I picked an approach that was as generic as possible for all
drm based drivers. However, I'm not sure if that approach is completely kosher with
respect to the mesa architecture.

Tested by sharing a dedicated vulkan allocation with a gl context in the same
process. The initial texture was loaded by vulkan, then consumed by GL.

Follow-up work includes support for EXT_semaphore and EXT_semaphore_fd. The
path for non-dedicated allocations might also need some improvements.

This series is available at:
https://github.com/lostgoat/mesa/tree/wip-mem-obj-v1




More information about the mesa-dev mailing list