devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=34415c05bd3222dc3ab76d82fdf2ca78b9c60c61

commit 34415c05bd3222dc3ab76d82fdf2ca78b9c60c61
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Fri Oct 30 16:00:32 2015 -0400

    ecore-drm: Add some debug printing for driver details
    
    Summary: In efforts to debug some non-working drm issues for people,
    it would be helpful to know what drivers and versions they are using.
    This commit just adds some debug printing for that information
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_device.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/lib/ecore_drm/ecore_drm_device.c 
b/src/lib/ecore_drm/ecore_drm_device.c
index 774234e..1e7c5f8 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)
 {
    uint64_t caps;
    int events = 0;
+   drmVersionPtr ver;
 
    /* check for valid device */
    if ((!dev) || (!dev->drm.name)) return EINA_FALSE;
@@ -284,6 +285,18 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
 
    DBG("Opened Device %s : %d", dev->drm.name, dev->drm.fd);
 
+   ver = drmGetVersion(dev->drm.fd);
+   if (ver)
+     {
+        DBG("\tDriver Name: %s", ver->name);
+        DBG("\tDriver Date: %s", ver->date);
+        DBG("\tDriver Description: %s", ver->desc);
+        DBG("\tDriver Version: %d.%d.%d",
+            ver->version_major, ver->version_minor,
+            ver->version_patchlevel);
+        drmFreeVersion(ver);
+     }
+
    /* set client capabilities to 'universal planes' so drm core will expose
     * the full universal plane list (including primary & cursor planes) */
    drmSetClientCap(dev->drm.fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1);

-- 


Reply via email to