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.
This commit is contained in:
parent
a9e5df44d8
commit
b514d4afe2
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue