Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0, 5.10
-
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
For Gerrit Dashboard: QTBUG-64841 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
212902,2 | Fix decoding of multi-planar surfaces (YUV video) | 5.9 | qt/qtwayland | Status: MERGED | +2 | 0 |