chore: smithay update
This commit is contained in:
parent
e95ff7c6e5
commit
a840b52930
4 changed files with 11 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -152,4 +152,8 @@ impl ApiDevice for GbmPixmanDevice {
|
|||
fn node(&self) -> &DrmNode {
|
||||
&self.node
|
||||
}
|
||||
|
||||
fn can_do_cross_device_imports(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue