Bug 106757

Summary: Qt's QOpenGLWidget renders a blank screen under XWayland
Product: Mesa Reporter: Michael Arnold <myk321>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact: Default DRI bug account <dri-devel>
Severity: normal    
Priority: medium    
Version: 18.0   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Qt Application renders correctly using MESA software rendering
Qt Application renders incorrectly under XWayland
Qt Application renders correctly under Wayland

Description Michael Arnold 2018-05-31 13:40:55 UTC
Created attachment 139886 [details]
Qt Application renders correctly using MESA software rendering

With intel integrated graphics, the Qt Surface example, that uses QOpenGLWidget, on Fedora 28 under an wayland session and then run under xwayland by starting the Qt application using the command:

./surface -platform xcb

results in the Qt application being displayed correctly, but the 3D data visualization is shown incorrectly as blank panel  (see attached).

The same Qt application in a Wayland session with MESA software rendering also under xwayland as follows:

LIBGL_ALWAYS_SOFTWARE=1 ./surface -platform xcb

results in the application and 3D data visualization being displayed correctly (see attached).

The same Qt application in a XOrg session results in the application and 3D data visualization being displayed correctly.

The same Qt application in a Wayland session run under wayland results in the application and 3D data visualization being displayed correctly.

This issue is logged as a Qt defect here: https://bugreports.qt.io/browse/QTBUG-68263

A similar issue is described for GNU Octave here: https://savannah.gnu.org/bugs/?51442
Comment 1 Michael Arnold 2018-05-31 13:42:06 UTC
Created attachment 139887 [details]
Qt Application renders incorrectly under XWayland
Comment 2 Michael Arnold 2018-05-31 13:42:42 UTC
Created attachment 139888 [details]
Qt Application renders correctly under Wayland
Comment 3 Michael Arnold 2018-11-12 06:13:00 UTC
Under Fedora 29 (Mesa 18.2.4) and Qt 5.12 Beta 4 this issue is no longer present.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.