[PATCH weston 0/5] gl renderer fixes for yuv formats

Arnaud Vrac rawoul at gmail.com
Wed Nov 29 14:25:30 UTC 2017

From: Arnaud Vrac <avrac at freebox.fr>

I found a few issues while trying to display videos backed with SHM memory.

Tested with the following commands on multiple GL stacks (mesa swrast, nvidia,
adreno), with GL_EXT_texture_rg enabled and disabled:

gst-launch-1.0 videotestsrc ! 'video/x-raw, format=YUY2' ! waylandsink
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=NV12' ! waylandsink
gst-launch-1.0 videotestsrc ! 'video/x-raw, format=I420' ! waylandsink

Note: the following patch was also applied for the tests:

Arnaud Vrac (5):
  gl-renderer: save OpenGL version in renderer context
  gl-renderer: try to create a GLES3 context first
  gl-renderer: always enable unpack subimage and RG textures in ES3
  gl-renderer: fix pixel format used in texture uploads when using R/RG
  gl-renderer: use correct pixel shader for NV12 format uploaded to RG

 libweston/gl-renderer.c | 77 ++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 64 insertions(+), 13 deletions(-)


More information about the wayland-devel mailing list