mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
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
1 changed files with 3 additions and 3 deletions
|
@ -324,9 +324,9 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
|
||||||
attribs[atti++] = EGL_CONTEXT_CLIENT_VERSION;
|
attribs[atti++] = EGL_CONTEXT_CLIENT_VERSION;
|
||||||
attribs[atti++] = 2;
|
attribs[atti++] = 2;
|
||||||
|
|
||||||
// On DRM, request a high priority context if possible
|
// Request a high priority context if possible
|
||||||
bool request_high_priority = ext_context_priority &&
|
// TODO: only do this if we're running as the DRM master
|
||||||
platform == EGL_PLATFORM_GBM_MESA;
|
bool request_high_priority = ext_context_priority;
|
||||||
|
|
||||||
// Try to reschedule all of our rendering to be completed first. If it
|
// Try to reschedule all of our rendering to be completed first. If it
|
||||||
// fails, it will fallback to the default priority (MEDIUM).
|
// fails, it will fallback to the default priority (MEDIUM).
|
||||||
|
|
Loading…
Reference in a new issue