Skip to content

Commit

Permalink
anvil: try to use a high priority egl context
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeissl committed Sep 15, 2023
1 parent be9208b commit 1cd5b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anvil/src/udev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 1cd5b33

Please sign in to comment.