From 94da8b1e3ecfc0e76e0de0990d3a14899c8984df Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 18 Sep 2023 20:09:57 +0400 Subject: tty: Try to create context with high priority --- src/backend/tty.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend') 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 -- cgit