Ozone X11 not working with CRD anymore |
|||
Issue descriptionIt looks like some combination of upgrading to gLinux and/or updating nvidia drivers has broken running Chrome OS with Ozone X11 over CRD. Running Chrome with GLX fails with CRD. GLX uses the nvidia driver. Forcing EGL with --use-gl=egl used to work for Ozone X11. EGL used the mesa driver instead of nvidia. I have since updated to gLinux and running Ozone X11 with --use-gl=egl works without CRD. However, it now uses the nvidia driver which has added EGL support in the last year or two. Running over CRD with --use-gl=egl now fails here: https://cs.chromium.org/chromium/src/ui/gl/gl_surface_egl.cc?l=840&rcl=0aeffba21ac5213b205cfb98b6fc14581b153871 The Linux desktop build falls back to software compositing so that still works with CRD. For doing Chrome OS development remotely this is problematic because software compositing is disabled for Chrome OS builds and it crashes on startup. vollick got Ozone X11 over CRD working with --use-gl=egl by adding mesa drivers back to the LD_LIBRARY path. Adding a few people who might have ideas for how to fix this or care that it's broken.
,
Jan 8 2018
I talked to lambroslambrou and got a bit more information about what is going on. It's not expected that CRD works with GPU acceleration. CRD sets LD_LIBRARY_PATH to point to the mesa driver. This still works and CRD tries to use the mesa driver with EGL. It's something about EGL + mesa driver I have with gLinux that doesn't work correctly. $ export LD_LIBRARY_PATH="/usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/mesa-diverted/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu/mesa:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/x86_64-linux-gnu/gallium-pipe" That is the LD_LIBRARY_PATH from a CRD session. If LD_LIBRARY_PATH is set and I run Ozone X11 with --use-gl=egl it fails initializing GL. Getting --use-gl=osmesa working is another option. I had https://crrev.com/c/537414 to do so but that never landed.
,
Jan 10 2018
I figured out what was wrong on my machine after upgrading to gLinux. The libgles2-mesa package was out of date. The following fixed it: $ sudo apt-get install libgles2-mesa Ozone X11 with --use-gl=egl works again over CRD. I'm not sure if this only effects me or if it will happen to others upgrading to gLinux, but the solution is pretty simple if so. |
|||
►
Sign in to add a comment |
|||
Comment 1 by jamescook@chromium.org
, Jan 8 2018Components: UI>Shell
Labels: -Pri-2 Pri-1