tty: Try to create context with high priority
Browse files at this commit94da8b1e3ecfc0e76e0de0990d3a14899c8984dfParent: 28548741 changed file +2 -1
- src/backend/tty.rs +2 -1
src/backend/tty.rsmodified+2 -1
| @@ -12,6 +12,7 @@ use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice}; | |||
| 12 | use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; | 12 | use smithay::backend::allocator::{Format as DrmFormat, Fourcc}; |
| 13 | use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; | 13 | use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement}; |
| 14 | use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime}; | 14 | use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime}; |
| 15 | +use smithay::backend::egl::context::ContextPriority; | ||
| 15 | use smithay::backend::egl::{EGLContext, EGLDisplay}; | 16 | use smithay::backend::egl::{EGLContext, EGLDisplay}; |
| 16 | use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; | 17 | use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface}; |
| 17 | use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability}; | 18 | use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability}; |
| @@ -279,7 +280,7 @@ impl Tty { | |||
| 279 | let gbm = GbmDevice::new(device_fd)?; | 280 | let gbm = GbmDevice::new(device_fd)?; |
| 280 | 281 | ||
| 281 | let display = EGLDisplay::new(gbm.clone())?; | 282 | let display = EGLDisplay::new(gbm.clone())?; |
| 282 | - let egl_context = EGLContext::new(&display)?; | 283 | + let egl_context = EGLContext::new_with_priority(&display, ContextPriority::High)?; |
| 283 | 284 | ||
| 284 | // ColorTransformations is disabled by default as it makes rendering slightly slower. | 285 | // ColorTransformations is disabled by default as it makes rendering slightly slower. |
| 285 | let mut gles = if self | 286 | let mut gles = if self |