summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-11 12:25:39 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-04-16 18:33:36 +0300
commit31988f414f7f879171f7fa137f1866e0c4ca7b66 (patch)
treeffd4d83b68f69a8d31d640d61d8f26d2d63cc909
parentc5cee811d1f0794c813745dff158057be9ce49af (diff)
kmscube: disable plane
-rw-r--r--kmscube/kmscube.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/kmscube/kmscube.cpp b/kmscube/kmscube.cpp
index 2b01b6b..1902970 100644
--- a/kmscube/kmscube.cpp
+++ b/kmscube/kmscube.cpp
@@ -49,6 +49,8 @@ static bool s_verbose;
static int s_flip_pending;
static bool s_need_exit;
+static bool s_support_planes;
+
class GbmDevice
{
public:
@@ -662,15 +664,17 @@ static void main_gbm()
Plane* plane = 0;
- for (Plane* p : crtc->get_possible_planes()) {
- if (find(used_planes.begin(), used_planes.end(), p) != used_planes.end())
- continue;
+ if (s_support_planes) {
+ for (Plane* p : crtc->get_possible_planes()) {
+ if (find(used_planes.begin(), used_planes.end(), p) != used_planes.end())
+ continue;
- if (p->plane_type() != PlaneType::Overlay)
- continue;
+ if (p->plane_type() != PlaneType::Overlay)
+ continue;
- plane = p;
- break;
+ plane = p;
+ break;
+ }
}
if (plane)