drm/legacy: Assume Argb8888 is at least supported like we used to

This commit is contained in:
Victor Brekenfeld 2021-04-25 23:32:11 +02:00
parent 1f86faf1e6
commit 347507fc92
1 changed files with 8 additions and 1 deletions

View File

@ -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,