[RFC PATCH xserver] xwayland: RFC Disable glamor with an env var?

Olivier Fourdan ofourdan at redhat.com
Wed Mar 1 16:45:11 UTC 2017


Hi all,

I am seeing quite a few Xwayland crashes related to glamor.

Various issues, could be with glamor itself or with the drivers (like the
issues I witness with nv30), whatever.

To investigate those issues (or even unblock affected users) it's often
useful to disable glamor -even temporarily- but Xwayland doesn't use an
xorg.conf and relies solely on the command line.

Not all compositors allow for customizing the command line, gnome-shell
or mutter for example have the command line and path to the Xwayland binary
hardcoded, which makes it harder for users to disable glamor acceleration
in Xwayland by adding -shm to the command line (glamor being used by
default).

Would adding an environment variable such as XWAYLAND_NO_GLAMOR (similar
to what Xephyr does with e.g. XEPHYR_NO_SHM) make sense here? 

I tried and it works with the following patch added, by setting the
environment variable XWAYLAND_NO_GLAMOR in a /etc/profile.d/ script on
Fedora 25.

Cheers,
Olivier

Olivier Fourdan (1):
  xwayland: add envvar XWAYLAND_NO_GLAMOR

 hw/xwayland/xwayland-glamor.c | 7 +++++++
 1 file changed, 7 insertions(+)

-- 
2.9.3



More information about the xorg-devel mailing list