From b514d4afe253f9e69b29f7377870a6f6125574a2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 1 Apr 2021 11:41:28 +0200 Subject: [PATCH] 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. --- render/egl.c | 6 +++--- 1 file 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).