diff options
author | Simon Ser <contact@emersion.fr> | 2021-04-01 11:41:28 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-06 14:57:54 +0200 |
commit | b514d4afe253f9e69b29f7377870a6f6125574a2 (patch) | |
tree | 1c231365540fca667bd02569186c4b281b1fa1c2 | |
parent | a9e5df44d898e6145ad126622ce557587acf3288 (diff) |
render/egl: stop relying on platform for high priority
All backends use the GBM platform. We can't use it to figure out
whether the DRM backend is used anymore.
Let's just try to always request a high-priority EGL context. Failing
to do so is not fatal.
-rw-r--r-- | render/egl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/egl.c b/render/egl.c index 0a20a696..80b38a90 100644 --- a/render/egl.c +++ b/render/egl.c @@ -324,9 +324,9 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) { attribs[atti++] = EGL_CONTEXT_CLIENT_VERSION; attribs[atti++] = 2; - // On DRM, request a high priority context if possible - bool request_high_priority = ext_context_priority && - platform == EGL_PLATFORM_GBM_MESA; + // Request a high priority context if possible + // TODO: only do this if we're running as the DRM master + bool request_high_priority = ext_context_priority; // Try to reschedule all of our rendering to be completed first. If it // fails, it will fallback to the default priority (MEDIUM). |