chore: smithay update

This commit is contained in:
Victoria Brekenfeld 2025-09-03 17:06:55 +02:00 committed by Victoria Brekenfeld
parent e95ff7c6e5
commit a840b52930
4 changed files with 11 additions and 4 deletions

View file

@ -8,14 +8,14 @@ use smithay::backend::{
},
drm::{CreateDrmNodeError, DrmNode},
renderer::{
gles::GlesError,
gles::{GlesError, GlesRenderer},
glow::GlowRenderer,
multigpu::{ApiDevice, Error as MultiError, GraphicsApi},
RendererSuper,
},
SwapBuffersError,
};
use std::cell::Cell;
use std::{borrow::Borrow, cell::Cell};
use std::{
collections::HashMap,
fmt,
@ -177,6 +177,9 @@ impl ApiDevice for GbmGlowDevice {
fn node(&self) -> &DrmNode {
&self.node
}
fn can_do_cross_device_imports(&self) -> bool {
!Borrow::<GlesRenderer>::borrow(&self.renderer).is_software()
}
}
impl<T: GraphicsApi, A: AsFd + Clone + 'static> FromGlesError for MultiError<GbmGlowBackend<A>, T>

View file

@ -152,4 +152,8 @@ impl ApiDevice for GbmPixmanDevice {
fn node(&self) -> &DrmNode {
&self.node
}
fn can_do_cross_device_imports(&self) -> bool {
false
}
}