commit 6a909e2

Michael Forney  ·  2014-02-27 08:16:13 +0000 UTC
parent 633b4c0
framebuffer_plane: Don't try a modeset on initialization
1 files changed,  +0, -10
+0, -10
 1@@ -207,14 +207,6 @@ bool framebuffer_plane_initialize(struct framebuffer_plane * plane,
 2     }
 3 
 4     memcpy(plane_connectors, connectors, num_connectors * sizeof connectors[0]);
 5-
 6-    if (drmModeSetCrtc(swc.drm->fd, crtc, -1, 0, 0,
 7-                       connectors, num_connectors, &mode->info) != 0)
 8-    {
 9-        ERROR("Failed to set CRTC: %s\n", strerror(errno));
10-        goto error2;
11-    }
12-
13     plane->crtc = crtc;
14     plane->need_modeset = true;
15     view_initialize(&plane->view, &view_impl);
16@@ -227,8 +219,6 @@ bool framebuffer_plane_initialize(struct framebuffer_plane * plane,
17 
18     return true;
19 
20-  error2:
21-    wl_array_release(&plane->connectors);
22   error1:
23     drmModeFreeCrtc(plane->original_crtc_state);
24   error0: