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
|
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))
|
||||||
|
|
Loading…
Reference in New Issue