Bug 173256 - [GTK] WebGL aquarium rendering broken with AC set to on-demand under Wayland
Summary: [GTK] WebGL aquarium rendering broken with AC set to on-demand under Wayland
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P3 Normal
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2017-06-12 04:09 PDT by Emanuele Aina
Modified: 2017-06-12 07:47 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuele Aina 2017-06-12 04:09:40 PDT
When opening https://webglsamples.org/aquarium/aquarium.html on r2180507/c41e8061429 on my XPS13 laptop with Weston running nested in the X11 session I get only the parameters box to render propertly, while the fish bowl is either flickering with bad contents or not rendering at all:

 $ weston &
 $ cd ~/dev/WebKit/
 $ cmake . -DCMAKE_BUILD_TYPE=Debug -DPORT=GTK -DENABLE_SPELLCHECK=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF -DENABLE_GLES2=ON -DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_TOOLS=ON -DENABLE_MINIBROWSER=ON -DDEVELOPER_MODE=ON
 $ make -j16
 $ ./bin/MiniBrowser https://webglsamples.org/aquarium/aquarium.html # will not render correctly in the nested Weston window

When forcing or disabling AC everything works fine:

 $ WEBKIT_FORCE_COMPOSITING_MODE=1 ./bin/MiniBrowser https://webglsamples.org/aquarium/aquarium.html # works ok
 $ WEBKIT_DISABLE_COMPOSITING_MODE=1 ./bin/MiniBrowser https://webglsamples.org/aquarium/aquarium.html # same

Under X11 everything works fine as well.
Comment 1 Michael Catanzaro 2017-06-12 06:06:00 PDT
I just see a completely gray window in Fedora 25 (with normal desktop OpenGL, Wayland session). Other WebGL demos work fine. So the problem with this aquarium demo is not limited to OpenGLES.