On Tue, 2017-05-09 at 12:48 +0200, Volker Vogelhuber wrote: [...] > Ok thanks for the clarification. There is only one missing part for the > GL_TEXTURE_2D case. The second EGLImage is created internally when > calling eglCreateImage with EGL_LINUX_DMA_BUF_EXT, so I only > have one return value I can bind to a texture using > glEGLImageTargetTexture2DOES. > Is there any "get" function to access the ARGB eglimage to bind it to > another > texture?
You create two separate EGLImages, calling eglCreateImage once for each plane. See for example: https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/gst-libs/gst/gl/gstglupload.c#n646 or https://cgit.freedesktop.org/wayland/weston/tree/libweston/gl-renderer.c#n1536 regards Philipp _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev