summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2017-09-04 09:05:01 +0900
committerBoram Park <boram1288.park@samsung.com>2017-09-04 09:46:45 +0900
commit3a4feb9edce5dd7297cbf5259547b4f0bbfdb04c (patch)
treed49e407cc53213840aa44aab5408a09e2131372d
parentf3056a3e0f72645ad13622e4a98bcb303448b92c (diff)
downloadlibtdm-drm-3a4feb9edce5dd7297cbf5259547b4f0bbfdb04c.tar.gz
libtdm-drm-3a4feb9edce5dd7297cbf5259547b4f0bbfdb04c.tar.bz2
libtdm-drm-3a4feb9edce5dd7297cbf5259547b4f0bbfdb04c.zip
support only a primary layer
Change-Id: Iabf28cb89b3a6590ed64c8bed01b701314c7284b
-rw-r--r--src/tdm_drm_display.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tdm_drm_display.c b/src/tdm_drm_display.c
index 15d4715..fb64607 100644
--- a/src/tdm_drm_display.c
+++ b/src/tdm_drm_display.c
@@ -557,6 +557,14 @@ _tdm_drm_display_create_layer_list_type(tdm_drm_data *drm_data)
goto failed;
}
+ /* The TDM drm backend only support a primary layer. */
+ if (type != DRM_PLANE_TYPE_PRIMARY) {
+ TDM_INFO("The TDM drm backend only support a primary layer. plane(%d) type(%d)",
+ plane->plane_id, type);
+ drmModeFreePlane(plane);
+ continue;
+ }
+
planes[plane_cnt] = plane;
types[plane_cnt] = type;
plane_cnt++;