chore: smithay update
This commit is contained in:
parent
e95ff7c6e5
commit
a840b52930
4 changed files with 11 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -4915,7 +4915,7 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "smithay"
|
name = "smithay"
|
||||||
version = "0.7.0"
|
version = "0.7.0"
|
||||||
source = "git+https://github.com/smithay/smithay.git?rev=20d2dac#20d2dacd71394b5f96f6ace0a70a6f20dc62c0c6"
|
source = "git+https://github.com/smithay/smithay.git?rev=d3bdae4#d3bdae43afb37a52acbeeada574cc05b06b539ba"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aliasable",
|
"aliasable",
|
||||||
"appendlist",
|
"appendlist",
|
||||||
|
|
|
||||||
|
|
@ -147,4 +147,4 @@ cosmic-protocols = { git = "https://github.com/pop-os//cosmic-protocols", branch
|
||||||
cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
|
cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
smithay = { git = "https://github.com/smithay/smithay.git", rev = "20d2dac" }
|
smithay = { git = "https://github.com/smithay/smithay.git", rev = "d3bdae4" }
|
||||||
|
|
|
||||||
|
|
@ -8,14 +8,14 @@ use smithay::backend::{
|
||||||
},
|
},
|
||||||
drm::{CreateDrmNodeError, DrmNode},
|
drm::{CreateDrmNodeError, DrmNode},
|
||||||
renderer::{
|
renderer::{
|
||||||
gles::GlesError,
|
gles::{GlesError, GlesRenderer},
|
||||||
glow::GlowRenderer,
|
glow::GlowRenderer,
|
||||||
multigpu::{ApiDevice, Error as MultiError, GraphicsApi},
|
multigpu::{ApiDevice, Error as MultiError, GraphicsApi},
|
||||||
RendererSuper,
|
RendererSuper,
|
||||||
},
|
},
|
||||||
SwapBuffersError,
|
SwapBuffersError,
|
||||||
};
|
};
|
||||||
use std::cell::Cell;
|
use std::{borrow::Borrow, cell::Cell};
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
fmt,
|
fmt,
|
||||||
|
|
@ -177,6 +177,9 @@ impl ApiDevice for GbmGlowDevice {
|
||||||
fn node(&self) -> &DrmNode {
|
fn node(&self) -> &DrmNode {
|
||||||
&self.node
|
&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>
|
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 {
|
fn node(&self) -> &DrmNode {
|
||||||
&self.node
|
&self.node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn can_do_cross_device_imports(&self) -> bool {
|
||||||
|
false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue