From 06b3683ea41fca77e7f102fafb053815f06e1410 Mon Sep 17 00:00:00 2001 From: Simon Fels Date: Tue, 7 Feb 2017 15:59:23 +0100 Subject: [PATCH] Force host EGL on devices running with the nvidia driver --- src/anbox/cmds/run.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/anbox/cmds/run.cpp b/src/anbox/cmds/run.cpp index e3bea66..aef1998 100644 --- a/src/anbox/cmds/run.cpp +++ b/src/anbox/cmds/run.cpp @@ -109,6 +109,13 @@ anbox::cmds::Run::Run(const BusFactory &bus_factory) return EXIT_FAILURE; } + // If we're running with the properietary nvidia driver we always + // use the host EGL driver as our translation doesn't work here. + if (fs::exists("/dev/nvidiactl")) { + INFO("Detected properietary nvidia driver; forcing use of the host EGL driver."); + gles_driver_ = graphics::GLRendererServer::Config::Driver::Host; + } + utils::ensure_paths({ SystemConfiguration::instance().socket_dir(), SystemConfiguration::instance().input_device_dir(),