kms: Drop early_import as it seems to hurt performance
This commit is contained in:
parent
1c3d45c155
commit
f9f8af10a0
2 changed files with 4 additions and 34 deletions
|
|
@ -1229,7 +1229,9 @@ impl Surface {
|
|||
Ok(()) => {
|
||||
self.pending = true;
|
||||
}
|
||||
Err(FrameError::EmptyFrame) => {}
|
||||
Err(FrameError::EmptyFrame) => {
|
||||
tracing::debug!("Stopped rendering");
|
||||
}
|
||||
Err(err) => {
|
||||
return Err(err).with_context(|| "Failed to submit result for display")
|
||||
}
|
||||
|
|
@ -1517,19 +1519,6 @@ impl KmsState {
|
|||
.copied()
|
||||
}
|
||||
|
||||
pub fn try_early_import(
|
||||
&mut self,
|
||||
surface: &WlSurface,
|
||||
output: &Output,
|
||||
target: DrmNode,
|
||||
shell: &Shell,
|
||||
) {
|
||||
let render = render_node_for_output(&output, self.primary_node, target, &shell);
|
||||
if let Err(err) = self.api.early_import(render, surface) {
|
||||
trace!(?err, "Early import failed.");
|
||||
}
|
||||
}
|
||||
|
||||
pub fn dmabuf_imported(
|
||||
&mut self,
|
||||
_client: Option<Client>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue