Skip to content

Commit

Permalink
kms/deps: Fix nvidia 545 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Oct 23, 2023
1 parent 0f29b02 commit 7667d60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ debug = true
lto = "fat"

[patch."https://github.com/Smithay/smithay.git"]
smithay = { git = "https://github.com/smithay//smithay", rev = "988c94d7e" }
smithay = { git = "https://github.com/smithay//smithay", rev = "dfa75ea" }

[patch.crates-io]
calloop = { git = "https://github.com/Smithay/calloop", rev = "71b6e633b1" }
7 changes: 6 additions & 1 deletion src/backend/kms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use smithay::{
Allocator, Format, Fourcc,
},
drm::{
compositor::{BlitFrameResultError, DrmCompositor, FrameError},
compositor::{BlitFrameResultError, DrmCompositor, FrameError, PrimaryPlaneElement},
DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime, DrmNode, NodeType,
},
egl::{EGLContext, EGLDevice, EGLDisplay},
Expand Down Expand Up @@ -1254,6 +1254,11 @@ impl Surface {
None
};

if frame_result.needs_sync() {
if let PrimaryPlaneElement::Swapchain(elem) = &frame_result.primary_element {
elem.sync.wait();
}
}
match compositor.queue_frame(feedback) {
Ok(()) | Err(FrameError::EmptyFrame) => {}
Err(err) => {
Expand Down

0 comments on commit 7667d60

Please sign in to comment.