drm/legacy: Assume Argb8888 is at least supported like we used to
This commit is contained in:
parent
1f86faf1e6
commit
347507fc92
|
@ -370,7 +370,14 @@ impl<A: AsRawFd + 'static> DrmDevice<A> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
info!(self.logger, "Supported scan-out formats for plane ({:?}): {:#?}", plane, formats);
|
if formats.is_empty() {
|
||||||
|
formats.insert(Format {
|
||||||
|
code: Fourcc::Argb8888,
|
||||||
|
modifier: Modifier::Invalid,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
info!(self.logger, "Supported scan-out formats for plane ({:?}): {:?}", plane, formats);
|
||||||
|
|
||||||
Ok(DrmSurface {
|
Ok(DrmSurface {
|
||||||
crtc,
|
crtc,
|
||||||
|
|
Loading…
Reference in New Issue