devilhorns pushed a commit to branch master.

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

commit c79922f392d01102cd6a9eb9db58565d149b3134
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed May 6 11:31:57 2015 -0400

    ecore-drm: Set drm client capabilities to support universal planes
    
    Summary: If we do not set client capabilities to support universal
    planes, then libdrm does not expose the primary or cursor planes so
    this adds a quick call to set DRM_CLIENT_CAP_UNIVERSAL_PLANES
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/ecore_drm/ecore_drm_device.c 
b/src/lib/ecore_drm/ecore_drm_device.c
index bc28205..81636c6 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -281,6 +281,10 @@ ecore_drm_device_open(Ecore_Drm_Device *dev)
 
    DBG("Opened Device %s : %d", dev->drm.name, dev->drm.fd);
 
+   /* 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);
+
    if (!drmGetCap(dev->drm.fd, DRM_CAP_TIMESTAMP_MONOTONIC, &caps))
      {
         if (caps == 1)

-- 


Reply via email to