Re: [Mesa-dev] GL_TEXTURE_2D to wl_buffer

2015-03-29 Thread x414e54
Hi thank you for the help, I will test The only reason for trying to use the texture to wl_buffer directly was just to get something working and then work back from there to see if it was an application side issue or not. Also just a fun experiment. On Sun, Mar 29, 2015 at 6:04 AM, Jason Ekstran

Re: [Mesa-dev] GL_TEXTURE_2D to wl_buffer

2015-03-28 Thread Jason Ekstrand
On Sat, Mar 28, 2015 at 6:57 AM, x414e54 wrote: > I am attempting to pass a GL_TEXTURE_2D directly to a Wayland compositor by > first converting it so an EGLImageKHR and then to a wl_buffer. > > eglCreateImageKHR appears to work fine but when calling > glCreateWaylandBufferFromImageWL I get EGL_BA

Re: [Mesa-dev] GL_TEXTURE_2D to wl_buffer

2015-03-28 Thread Axel Davy
GL_RGBA should corresponds to ABGR. Try GL_BGRA, which is ARGB. Note: Actually it is possible intel vs gallium drivers GL_RGBA and GL_BGRA have different argb ordering. So perhaps try both so that all drivers are happy. Le 28/03/2015 14:57, x414e54 a écrit : I am attempting to pass a

[Mesa-dev] GL_TEXTURE_2D to wl_buffer

2015-03-28 Thread x414e54
I am attempting to pass a GL_TEXTURE_2D directly to a Wayland compositor by first converting it so an EGLImageKHR and then to a wl_buffer. eglCreateImageKHR appears to work fine but when calling glCreateWaylandBufferFromImageWL I get EGL_BAD_MATCH "unsupported image format". The GL_TEXTURE_2D is