summaryrefslogtreecommitdiff
path: root/src/tdm_drm.c
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2016-01-22 18:57:20 +0900
committerBoram Park <boram1288.park@samsung.com>2016-01-22 02:02:31 -0800
commit5cd80c9b382dc7cfa5d321ebd2980883843097c9 (patch)
treea16cbb88a13f5933e94deba89165a81f4db6f542 /src/tdm_drm.c
parentf7900faf4ef7c89e7d73eb08fc2af863d4dc975d (diff)
downloadlibtdm-drm-submit/tizen/20160122.100401.tar.gz
libtdm-drm-submit/tizen/20160122.100401.tar.bz2
libtdm-drm-submit/tizen/20160122.100401.zip
Change-Id: I89805b3cb097994d35eba5d25a26ca16b20e3826
Diffstat (limited to 'src/tdm_drm.c')
-rw-r--r--src/tdm_drm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tdm_drm.c b/src/tdm_drm.c
index b47afec..a07f70f 100644
--- a/src/tdm_drm.c
+++ b/src/tdm_drm.c
@@ -216,8 +216,10 @@ tdm_drm_init(tdm_display *dpy, tdm_error *error)
goto failed;
}
+#if LIBDRM_MAJOR_VERSION >= 2 && LIBDRM_MINOR_VERSION >= 4 && LIBDRM_MICRO_VERSION >= 47
if (drmSetClientCap(drm_data->drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1) < 0)
TDM_WRN("Set DRM_CLIENT_CAP_UNIVERSAL_PLANES failed");
+#endif
drm_data->mode_res = drmModeGetResources(drm_data->drm_fd);
if (!drm_data->mode_res)