autocommit 2022-03-29 15:40:59 CEST
This commit is contained in:
parent
6ebf731aea
commit
9842264fad
39 changed files with 121 additions and 92 deletions
|
|
@ -228,7 +228,7 @@ fn create_connector(
|
|||
master: dev.master.clone(),
|
||||
output_id: state.output_ids.next(),
|
||||
crtcs,
|
||||
mode: CloneCell::new(info.modes.first().cloned().map(|m| Rc::new(m))),
|
||||
mode: CloneCell::new(info.modes.first().cloned().map(Rc::new)),
|
||||
modes: info.modes,
|
||||
buffers: Default::default(),
|
||||
next_buffer: Default::default(),
|
||||
|
|
@ -749,7 +749,7 @@ impl MetalBackend {
|
|||
let bo = dev.dev.gbm.create_bo(
|
||||
width,
|
||||
height,
|
||||
&format,
|
||||
format,
|
||||
GBM_BO_USE_RENDERING | GBM_BO_USE_SCANOUT,
|
||||
);
|
||||
let bo = match bo {
|
||||
|
|
@ -929,7 +929,7 @@ pub struct RenderBuffer {
|
|||
}
|
||||
|
||||
fn modes_equal(a: &DrmModeInfo, b: &DrmModeInfo) -> bool {
|
||||
true && a.clock == b.clock
|
||||
a.clock == b.clock
|
||||
&& a.hdisplay == b.hdisplay
|
||||
&& a.hsync_start == b.hsync_start
|
||||
&& a.hsync_end == b.hsync_end
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ impl XBackendData {
|
|||
modifier: INVALID_MODIFIER,
|
||||
};
|
||||
let mut images = [None, None];
|
||||
for i in 0..2 {
|
||||
for image in &mut images {
|
||||
let bo = self
|
||||
.gbm
|
||||
.create_bo(width, height, &format, GBM_BO_USE_RENDERING)?;
|
||||
|
|
@ -358,7 +358,7 @@ impl XBackendData {
|
|||
}
|
||||
pfb.pixmap
|
||||
};
|
||||
images[i] = Some(XImage {
|
||||
*image = Some(XImage {
|
||||
pixmap: Cell::new(pixmap),
|
||||
fb: CloneCell::new(fb),
|
||||
idle: Cell::new(true),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue