Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Jul 28, 2024
1 parent 1520232 commit 4eecb1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/screenshoter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use {
thiserror::Error,
uapi::OwnedFd,
};
use crate::video::gbm::GBM_BO_USE_WRITE;

#[derive(Debug, Error)]
pub enum ScreenshooterError {
Expand Down Expand Up @@ -65,7 +66,7 @@ pub fn take_screenshot(
extents.height(),
XRGB8888,
modifiers,
GBM_BO_USE_RENDERING,
GBM_BO_USE_WRITE,
)?;
let fb = ctx.clone().dmabuf_fb(bo.dmabuf())?;
fb.render_node(
Expand Down
6 changes: 3 additions & 3 deletions src/video/gbm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ impl GbmDevice {
}
let bo = BoHolder { bo };
let mut dma = export_bo(dma_buf_ids, bo.bo)?;
if modifiers.is_null() {
dma.modifier = INVALID_MODIFIER;
}
// if modifiers.is_null() {
// dma.modifier = INVALID_MODIFIER;
// }
Ok(GbmBo { bo, dmabuf: dma })
}
}
Expand Down

0 comments on commit 4eecb1a

Please sign in to comment.