summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 774234eb5c..1e7c5f8edb 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -273,6 +273,7 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
273{ 273{
274 uint64_t caps; 274 uint64_t caps;
275 int events = 0; 275 int events = 0;
276 drmVersionPtr ver;
276 277
277 /* check for valid device */ 278 /* check for valid device */
278 if ((!dev) || (!dev->drm.name)) return EINA_FALSE; 279 if ((!dev) || (!dev->drm.name)) return EINA_FALSE;
@@ -284,6 +285,18 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
284 285
285 DBG("Opened Device %s : %d", dev->drm.name, dev->drm.fd); 286 DBG("Opened Device %s : %d", dev->drm.name, dev->drm.fd);
286 287
288 ver = drmGetVersion(dev->drm.fd);
289 if (ver)
290 {
291 DBG("\tDriver Name: %s", ver->name);
292 DBG("\tDriver Date: %s", ver->date);
293 DBG("\tDriver Description: %s", ver->desc);
294 DBG("\tDriver Version: %d.%d.%d",
295 ver->version_major, ver->version_minor,
296 ver->version_patchlevel);
297 drmFreeVersion(ver);
298 }
299
287 /* set client capabilities to 'universal planes' so drm core will expose 300 /* set client capabilities to 'universal planes' so drm core will expose
288 * the full universal plane list (including primary & cursor planes) */ 301 * the full universal plane list (including primary & cursor planes) */
289 drmSetClientCap(dev->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1); 302 drmSetClientCap(dev->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);