+ 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
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev