If no universal planes, plane_type() returns always PlaneType::Overlay.
authorJyri Sarha <jsarha@ti.com>
Thu, 1 Oct 2015 09:27:12 +0000 (12:27 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 1 Oct 2015 09:58:50 +0000 (12:58 +0300)
libkms++/plane.cpp

index afb9c780edcc79ee8e505dc894c7e24163e4b604..b9884e2db70415c99d484f968c3acc3989e6502a 100644 (file)
@@ -59,6 +59,9 @@ bool Plane::supports_crtc(Crtc* crtc) const
 
 PlaneType Plane::plane_type() const
 {
-       return (PlaneType)get_prop_value("type");
+       if (card().has_has_universal_planes())
+               return (PlaneType)get_prop_value("type");
+       else
+               return PlaneType::Overlay;
 }
 }