[Mesa-dev] [PATCH 1/9] gallium/dri: Support DRI Image extension version 6

Axel Davy axel.davy at ens.fr
Fri Nov 22 13:09:40 PST 2013


>+                         void *loaderPrivate)
>+{
>+   __DRIimage *img;
>+   struct gl_context *ctx = ((struct st_context *)dri_context(context))->ctx;
>+   struct gl_texture_object *obj;
>+   struct pipe_resource *tex;
>+   GLuint face = 0;

This part doesn't work.
A dri_context can be converted to a st_context.

To get the pipe_resource, we should use the st_context_iface in dri_context, and the function get_resource_for_egl_image.

Unfortunately, this function isn't implemented in mesa.

I've found this three years old patch, which implements it: http://marc.info/?l=mesa3d-dev&m=128431813411436
The get_resource_for_egl_image we need is at the end of the patch, and the implementation look correct to me.

Could a state_tracker expert review it and push the part of the patch we need?

>+   img->dri_format = driGLFormatToImageFormat(obj->_BufferObjectFormat);

This part doesn't work either: it doesn't give the correct format.


Getting this function right would really help to write glamor dri3 helpers

Axel Davy


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131122/f9487337/attachment.html>


More information about the mesa-dev mailing list