[PATCH weston 1/2] compositor: a couple debug logs

Rob Clark rob.clark at linaro.org
Mon Aug 13 15:39:17 PDT 2012


From: Rob Clark <rob at ti.com>

Well, they were useful to me in debugging, so probably sooner or later
useful to someone else.

Signed-off-by: Rob Clark <rob at ti.com>
---
 src/compositor.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/compositor.c b/src/compositor.c
index ed887a4..b2a3ae9 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -817,8 +817,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);
@@ -829,7 +831,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");
 	}
 }
 
-- 
1.7.9.5



More information about the wayland-devel mailing list