drm/atomic: Set plane rotation to sane default
@@ -862,6 +862,11 @@ impl<A: AsRawFd + 'static> AtomicDrmSurface<A> {
self.plane_prop_handle(primary, "CRTC_H")?,
property::Value::UnsignedRange(mode.size().1 as u64),
);
+ req.add_property(
+ primary,
+ self.plane_prop_handle(primary, "rotation")?,
+ property::Value::Bitmask(1u64),
+ );
}
// and finally the others
@@ -908,6 +913,11 @@ impl<A: AsRawFd + 'static> AtomicDrmSurface<A> {
self.plane_prop_handle(plane_info.handle, "CRTC_H")?,
property::Value::UnsignedRange(plane_info.h as u64),
);
+ req.add_property(
+ plane_info.handle,
+ self.plane_prop_handle(plane_info.handle, "rotation")?,
+ property::Value::Bitmask(1u64),
+ );
}
Ok(req)
