diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-18 20:09:57 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-18 20:09:57 +0400 |
| commit | 94da8b1e3ecfc0e76e0de0990d3a14899c8984df (patch) | |
| tree | b929ae6703ad6e19f27a5f630ede70b96189d6e5 | |
| parent | 2854874793611a00568d25b99d8e6af074114cb1 (diff) | |
| download | niri-94da8b1e3ecfc0e76e0de0990d3a14899c8984df.tar.gz niri-94da8b1e3ecfc0e76e0de0990d3a14899c8984df.tar.bz2 niri-94da8b1e3ecfc0e76e0de0990d3a14899c8984df.zip | |
tty: Try to create context with high priority
| -rw-r--r-- | src/backend/tty.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 86ce9b10..1c329bf7 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -12,6 +12,7 @@ use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice}; use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime}; +use smithay::backend::egl::context::ContextPriority; use smithay::backend::egl::{EGLContext, EGLDisplay}; use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability}; @@ -279,7 +280,7 @@ impl Tty { let gbm = GbmDevice::new(device_fd)?; let display = EGLDisplay::new(gbm.clone())?; - let egl_context = EGLContext::new(&display)?; + let egl_context = EGLContext::new_with_priority(&display, ContextPriority::High)?; // ColorTransformations is disabled by default as it makes rendering slightly slower. let mut gles = if self |
