[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:
https://lists.freedesktop.org/archives/wayland-devel/2017-October/035359.html

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
    contexts
  gl-renderer: fix pixel format used in texture uploads when using R/RG
    textures
  gl-renderer: use correct pixel shader for NV12 format uploaded to RG
    texture

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

-- 
2.15.0



More information about the wayland-devel mailing list