devilhorns pushed a commit to branch master.

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

commit 8a4922132fceaa8a442b6a38d75c04d65f7c3870
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu May 21 10:51:29 2015 -0400

    ecore-drm: Remove call to set drm mode when creating an output
    
    Summary: As it turns out, we don't need to make the call to set an
    output mode during creation. The mode will end up getting set anyway
    when we set the first buffer.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_drm/ecore_drm_output.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/lib/ecore_drm/ecore_drm_output.c 
b/src/lib/ecore_drm/ecore_drm_output.c
index c66a9da..d6573f3 100644
--- a/src/lib/ecore_drm/ecore_drm_output.c
+++ b/src/lib/ecore_drm/ecore_drm_output.c
@@ -498,19 +498,6 @@ _ecore_drm_output_create(Ecore_Drm_Device *dev, drmModeRes 
*res, drmModeConnecto
 
    output->current_mode->flags |= DRM_MODE_TYPE_DEFAULT;
 
-   if (output->connected)
-     {
-        if (drmModeSetCrtc(output->dev->drm.fd, output->crtc_id,
-                           output->crtc->buffer_id, 0, 0,
-                           &output->conn_id, 1, &output->current_mode->info) < 
0)
-          {
-             ERR("Failed to set Mode %dx%d for Output %s: %m",
-                 output->current_mode->width, output->current_mode->height,
-                 output->name);
-             goto err;
-          }
-     }
-
    /* try to init backlight */
    output->backlight = 
      _ecore_drm_output_backlight_init(output, conn->connector_type);

-- 


Reply via email to