1
0
Fork 0
forked from wry/wry

video: move dma-buf types into workspace crate

This commit is contained in:
kossLAN 2026-05-29 11:27:02 -04:00
parent f456905231
commit ebaccd8762
No known key found for this signature in database
6 changed files with 77 additions and 14 deletions

9
video-types/src/lib.rs Normal file
View file

@ -0,0 +1,9 @@
pub mod dmabuf;
pub type Modifier = u64;
pub const INVALID_MODIFIER: Modifier = 0x00ff_ffff_ffff_ffff;
pub const LINEAR_MODIFIER: Modifier = 0;
// This is required by AMD and therefore everyone else uses this too.
pub const LINEAR_STRIDE_ALIGN: u64 = 256;