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

Daniel Stone daniel at fooishbar.org
Mon Apr 25 12:45:11 UTC 2016


Hi,

On 22 April 2016 at 19:21, Eric Anholt <eric at anholt.net> wrote:
> I don't think we want to always make a spare context just in case
> someone uses the map API.  Contexts can be pretty expensive to set up,
> in time (for piglit tests on gbm) and memory (for X.Org).
>
> It's too bad I don't think we have a way to get the existing
> __DRIcontext from EGL to pass as an arg to map/unmap here, which could
> be nice for glamor.

You don't always have one: think of the Plymouth case in particular,
or anything else using Pixman, which could benefit from this I
suppose.

Cheers,
Daniel


More information about the mesa-dev mailing list