From patchwork Mon Aug 13 22:39:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 10711 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3CA4023E29 for ; Mon, 13 Aug 2012 22:39:31 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0C272A18928 for ; Mon, 13 Aug 2012 22:39:30 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id i2so2034211ggm.11 for ; Mon, 13 Aug 2012 15:39:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=2LJN8WYJivSyCXYm2MNv2khaU21HGwCxOiC4t/1I0Jc=; b=mJzpYAS/EHcfaBQ+z65BFNvQAj3TrnIuyJtSSrftvRd67mi82DkXwvWsQ81Btdl7pP mg2Q4ptjvR6UguZfwX+NsgOtgBqgQYxanhWL1eNB3RjDjunEny2LrcZCrSo2h9WTagFY VJwXlnuNMiGFLQGc/kNvcRyNsMq7Yi3fXnb5VgvMlhrw7ooVOEOi2JBiQToQTFE6RXQh gNeBROEfo+x7ejZHGYoZripnPqUZi1nNI4benb33nO2xqXFKCs9mOEuZpZgLmRftm803 e5EsIOWzSJkGydgl08x/j6pI0B1FeO+ObvQ5OTWY4ohS2ZIALx5z55ahJIyVQZ4r00pU /Mtw== Received: by 10.50.159.135 with SMTP id xc7mr7866145igb.9.1344897570506; Mon, 13 Aug 2012 15:39:30 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp201631igc; Mon, 13 Aug 2012 15:39:30 -0700 (PDT) Received: by 10.182.217.38 with SMTP id ov6mr15314670obc.33.1344897570089; Mon, 13 Aug 2012 15:39:30 -0700 (PDT) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id fy3si964299obc.174.2012.08.13.15.39.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 15:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.214.178 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-ob0-f178.google.com with SMTP id wd20so9747767obb.37 for ; Mon, 13 Aug 2012 15:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=2LJN8WYJivSyCXYm2MNv2khaU21HGwCxOiC4t/1I0Jc=; b=MsHpn7sU8wQOkBMDTGLarvfuD5O9OW9OqDRA6D0aUrz7CuTUT1R1bFSWhhNl8FTYCd f+RBmHPKnt1WDQ0ouhEEVjLZVcxFUgelgLyfm6l9IoGYBT/vAIfjLQHCKsfjl2BLb9bc lOSoQRUulB3MWcCpQPAZ9iC898k+OvnBLuVqi3ruEiGU2ZHEBstCIqTw8fRnKj6hk9Oe ob6OldmNzCB5IMOtpJM+JYTl5YkIz72LdsvavunHjNbpkptMK4zmPIVn/aTb/oQYcMN9 aIdPoISEsLSxmxw2Lg0i8sgliWboGfvyrh+yWUsAY3Uvwj5d+6MxEHvDVsjD5/v/Jl+7 RHFg== Received: by 10.182.16.3 with SMTP id b3mr15324942obd.72.1344897569937; Mon, 13 Aug 2012 15:39:29 -0700 (PDT) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id pj4sm850272obb.20.2012.08.13.15.39.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Aug 2012 15:39:29 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: wayland-devel@lists.freedesktop.org, mesa-dev@lists.freedesktop.org Cc: patches@linaro.org, Rob Clark Subject: [PATCH weston 1/2] compositor: a couple debug logs Date: Mon, 13 Aug 2012 17:39:17 -0500 Message-Id: <1344897558-1976-2-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1344897558-1976-1-git-send-email-rob.clark@linaro.org> References: <1344897558-1976-1-git-send-email-rob.clark@linaro.org> X-Gm-Message-State: ALoCoQl4xKgnG1ikb01NmX4DQeMCcRllrewUIqfTsqH7cdPB+JoslngkeZ7g3yEmCojyk7TJbP+s From: Rob Clark Well, they were useful to me in debugging, so probably sooner or later useful to someone else. Signed-off-by: Rob Clark --- 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"); } }