summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2015-10-01 12:27:12 +0300
committerJyri Sarha <jsarha@ti.com>2015-10-01 12:58:50 +0300
commitda7e0eb5cf916d4e02a49d31b57f27ff3cc3b159 (patch)
tree9e05fc72c070309c76ca4759d40b2677046f1a4f
parent7f667ccc41c29c7dbc59a9818a025a130dc2216b (diff)
If no universal planes, plane_type() returns always PlaneType::Overlay.
-rw-r--r--libkms++/plane.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libkms++/plane.cpp b/libkms++/plane.cpp
index afb9c78..b9884e2 100644
--- a/libkms++/plane.cpp
+++ b/libkms++/plane.cpp
@@ -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;
}
}