Correctly scan for any encoders

This commit is contained in:
Drakulix 2017-12-02 13:51:08 +01:00
parent b5b5af9b99
commit 612436e42d
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ impl<B: From<DrmBackend> + Borrow<DrmBackend> + 'static> DrmDevice<B> {
if !encoders if !encoders
.iter() .iter()
.map(|encoder| encoder.possible_crtcs()) .map(|encoder| encoder.possible_crtcs())
.all(|crtc_list| { .any(|crtc_list| {
resource_handles.filter_crtcs(crtc_list).contains(&crtc) resource_handles.filter_crtcs(crtc_list).contains(&crtc)
}) { }) {
bail!(ErrorKind::NoSuitableEncoder(con_info, crtc)) bail!(ErrorKind::NoSuitableEncoder(con_info, crtc))