[Mesa-dev] [android-x86-devel] Re: gralloc_drm_pipe

Rob Herring robherring2 at gmail.com
Sun Apr 3 22:25:17 UTC 2016


On Sun, Apr 3, 2016 at 12:29 PM, Chih-Wei Huang <cwhuang at android-x86.org> wrote:
> 2016-04-04 0:53 GMT+08:00 Chih-Wei Huang <cwhuang at android-x86.org>:
>> 2016-04-02 4:42 GMT+08:00 Rob Herring <robh at kernel.org>:
>>>
>>> Here's an initial gralloc implementation based on my GBM map/unmap support:
>>>
>>> https://github.com/robherring/gbm_gralloc
>>>
>>> It's based on drm_gralloc, but heavily re-written to collapse some
>>> unnecessary layers.
>
> It required a shared library libgbm.
> So I guess we have to add an Android.mk
> for libgbm in mesa? Do you already have a patch?

Yes, I do. I've not published them yet. It's also dependent on APIs
which are under discussion.

It's very much a WIP and not something android-x86 can really use yet.

> Besides, the module name is still gralloc.drm.
> How about call it gralloc.gbm?

Eventually yes, but for now it is more convenient for my development
to keep the name the same.

> That means it can coexist with the current
> gralloc.drm module so the transition to it
> will be easier. Agree?

It's not binary compatible, only source compatible ATM, so they can't
really coexist yet. The gralloc implementation specific dependencies
in mesa and hwc is something I'm looking at. They consist of
retrieving the prime FD for a handle and retrieving the DRM device FD.

Rob


More information about the mesa-dev mailing list