Wait for DRM presentation before releasing frame callbacks
Cancel callback-only timers when a frame is submitted and defer callback delivery until retirement. Cover a delayed timer and missed presentation deadline in the scheduler tests. Clean up shader argument borrows and shell region decoding to pass Clippy.
This commit is contained in:
1 parent
a40b899b8c
commit
3d0c85c70a
7 files changed
+76
-28
No files matched your search
@@ -562,8 +562,10 @@ mod region_encoding_tests {
|
||||
let regions = [[0.25, -0.75, 100.5, 40.25, 14.0]];
|
||||
let bytes = super::encode_regions(®ions);
|
||||
let decoded: Vec<_> = bytes
|
||||
.chunks_exact(4)
|
||||
.map(|v| f32::from_ne_bytes(v.try_into().unwrap()))
|
||||
.as_chunks::<4>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|&v| f32::from_ne_bytes(v))
|
||||
.collect();
|
||||
assert_eq!(decoded, regions[0]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user