Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64841

[REG 5.7.1->5.8.0] Wayland: Multi-planar surfaces (YUV video) are not decoded correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.4, 5.10.1
    • 5.8.0, 5.10
    • QPA: Wayland
    • None
    • AGL 4.0.4, Qt 5.8.0, Minnowboard (Intel Atom)
    • 800c71ca816d76ac4de0616bf54b87f3c1f14c0a

    Description

      I'm trying to play hardware-accelerated video through wayland-egl and QtWayland-based compositor and video is displayed as monochrome with 'greenish' overlay (UV component is missing).

      QtWayland compositor is using fragment shader to convert multi-planar buffers (e.g. YUV video frames) to RGBA. This used to be working fine in 5.7.1, but got broken in 5.8.0 and seems to be present in 5.10 (not verified).

      I guess this was broken in this change: https://github.com/qt/qtwayland/commit/844204b2b04d0f3477d069db326f0e70129c71e2

       

      I don't have a test app for the issue as setup is quite specific to the project, but the patch is pretty obvious: in QWaylandQuickItem's meterial: QOpenGLTexture::bind() expects texture unit number as plain uint number (e.g. 0,1,2) and not as GLenum (GL_TEXTURE1).

      See proposed patch attached.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            akozhanov Andrey Kozhanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes