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
.iter()
.map(|encoder| encoder.possible_crtcs())
.all(|crtc_list| {
.any(|crtc_list| {
resource_handles.filter_crtcs(crtc_list).contains(&crtc)
}) {
bail!(ErrorKind::NoSuitableEncoder(con_info, crtc))