Correctly scan for any encoders
This commit is contained in:
parent
b5b5af9b99
commit
612436e42d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue