From 1cd5b337c44b95a13c6aa7427912e530c191fc1e Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Fri, 15 Sep 2023 15:22:32 +0200 Subject: [PATCH] anvil: try to use a high priority egl context --- anvil/src/udev.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anvil/src/udev.rs b/anvil/src/udev.rs index 3803f1f1bab8..cdec51d24f24 100644 --- a/anvil/src/udev.rs +++ b/anvil/src/udev.rs @@ -34,7 +34,7 @@ use smithay::{ compositor::DrmCompositor, CreateDrmNodeError, DrmDevice, DrmDeviceFd, DrmError, DrmEvent, DrmEventMetadata, DrmNode, DrmSurface, GbmBufferedSurface, NodeType, }, - egl::{self, EGLDevice, EGLDisplay}, + egl::{self, context::ContextPriority, EGLDevice, EGLDisplay}, libinput::{LibinputInputBackend, LibinputSessionInterface}, renderer::{ damage::{Error as OutputDamageTrackerError, OutputDamageTracker}, @@ -228,7 +228,7 @@ pub fn run_udev() { }; info!("Using {} as primary gpu.", primary_gpu); - let gpus = GpuManager::new(GbmGlesBackend::default()).unwrap(); + let gpus = GpuManager::new(GbmGlesBackend::with_context_priority(ContextPriority::High)).unwrap(); let data = UdevData { dh: display.handle(),