diff options
author | Boram Park <boram1288.park@samsung.com> | 2016-01-22 18:57:20 +0900 |
---|---|---|
committer | Boram Park <boram1288.park@samsung.com> | 2016-01-22 02:02:31 -0800 |
commit | 5cd80c9b382dc7cfa5d321ebd2980883843097c9 (patch) | |
tree | a16cbb88a13f5933e94deba89165a81f4db6f542 /src/tdm_drm.c | |
parent | f7900faf4ef7c89e7d73eb08fc2af863d4dc975d (diff) | |
download | libtdm-drm-submit/tizen/20160122.100401.tar.gz libtdm-drm-submit/tizen/20160122.100401.tar.bz2 libtdm-drm-submit/tizen/20160122.100401.zip |
checking drm version to avoid build-breaksubmit/tizen_ivi/20160217.000004submit/tizen_ivi/20160217.000000submit/tizen_common/20160219.083441submit/tizen_common/20160218.142243submit/tizen/20160122.100401accepted/tizen/wearable/20160125.011602accepted/tizen/tv/20160125.011558accepted/tizen/mobile/20160125.011554accepted/tizen/ivi/20160218.024325accepted/tizen/common/20160223.110206
Change-Id: I89805b3cb097994d35eba5d25a26ca16b20e3826
Diffstat (limited to 'src/tdm_drm.c')
-rw-r--r-- | src/tdm_drm.c | 2 |
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) |