compositor: a couple debug logs
authorRob Clark <rob@ti.com>
Mon, 13 Aug 2012 22:39:17 +0000 (17:39 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 14 Aug 2012 23:53:39 +0000 (19:53 -0400)
Well, they were useful to me in debugging, so probably sooner or later
useful to someone else.

Signed-off-by: Rob Clark <rob@ti.com>
src/compositor.c

index 7370435..2efcacc 100644 (file)
@@ -837,8 +837,10 @@ weston_surface_attach(struct wl_surface *surface, struct wl_buffer *buffer)
                                                         NULL,
                                                         EGL_WAYLAND_BUFFER_WL,
                                                         buffer, attribs);
-                       if (!es->images[i])
+                       if (!es->images[i]) {
+                               weston_log("failed to create img for plane %d\n", i);
                                continue;
+                       }
                        es->num_images++;
 
                        glActiveTexture(GL_TEXTURE0 + i);
@@ -849,7 +851,7 @@ weston_surface_attach(struct wl_surface *surface, struct wl_buffer *buffer)
 
                es->pitch = buffer->width;
        } else {
-               /* unhandled buffer type */
+               weston_log("unhandled buffer type!\n");
        }
 }