[Mesa-dev] About MESA drm image extension

Kristian Høgsberg krh at bitplanet.net
Mon Dec 5 07:03:48 PST 2011


2011/12/5 zhigang gong <zhigang.gong at gmail.com>:
> Hi Kristian,
>
> I'm integrating glamor with intel's video driver now. The basic idea
> is to allocate a BO
>  by calling libdrm directly in intel uxa code path, then latter create
> an EGL image from
> that BO's handle. And then bind the image to a texture then glamor can
> use it as usual.
>
> Now the problem is that per the spec, EGL_MESA_drm_image extension only support
> one format,   EGL_DRM_BUFFER_FORMAT_ARGB32_MESA which has a 32bit depth.
>
> But a normal pixmap may has 8 or 16 bit depth color format, thus we can't get a
> correct format image.
>
> Would you like to extent the MESA drm image extension to support more formats?
> If so, then I can contribute on that including implement it in mesa.
> Or do you have any
> suggestion for my issues. Thanks.

I think we should try to use libgbm instead of EGL_MESA_drm_image.  We
can add more formats to gbm if that helps.

Kristian


More information about the mesa-dev mailing list