make device DrmDevice in disable_crts
This commit is contained in:
parent
a9f2427c00
commit
f5e0ba1594
3 changed files with 10 additions and 21 deletions
|
|
@ -865,12 +865,9 @@ impl KmsGuard<'_> {
|
|||
}
|
||||
});
|
||||
|
||||
let supports_atomic = device.drm.device().is_atomic();
|
||||
if let Err(err) = drm_helpers::disable_crtcs(
|
||||
device.drm.device_mut(),
|
||||
supports_atomic,
|
||||
&disabled_crtcs,
|
||||
) {
|
||||
if let Err(err) =
|
||||
drm_helpers::disable_crtcs(device.drm.device_mut(), &disabled_crtcs)
|
||||
{
|
||||
warn!("Failed to disable crtcs for disabled outputs: {err}");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue