From patchwork Wed May 16 09:07:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Clark X-Patchwork-Id: 8675 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 C9B7023E61 for ; Wed, 16 May 2012 09:07:41 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 996A0A1831E for ; Wed, 16 May 2012 09:07:41 +0000 (UTC) Received: by mail-yx0-f180.google.com with SMTP id q6so525078yen.11 for ; Wed, 16 May 2012 02:07:41 -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=IPo9TWnOXJNxfeoHBEnntJIgif2R56+dsc3prGCQ6Ew=; b=IAXATtIF7/+gfN6RIIS7KBymDREZFCzSbyY/fTNGa0lOCcXd329DjFzGfr5uePc4lZ yE3WEbh4mycS6Do2IGLEYPnUpAtKzKJUcxnNeD98Ehdmyc8+X5cBKL/KDS8xe+hyqUPO lKjTOaDEdxsE9txg7Cb+YwJestVOm8gLc2HtRiYANFFYIil3GqkFRQhAR/6Nz5yJBQUS UF3Bfff0QLMWVqxX99WxgUh0/SUIWf+QpMlGtwrH2zD3B0rNfvhotGDgpTw0zEY1+mEF ynE3gjB2wozZVUsmqzrPJtXYW9VDuJDu8q2mtg0RzbY0nVCNLOW2UFd/9kHT6i6APFb9 ipHg== Received: by 10.50.40.193 with SMTP id z1mr1411362igk.0.1337159260985; Wed, 16 May 2012 02:07:40 -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.231.35.72 with SMTP id o8csp479071ibd; Wed, 16 May 2012 02:07:40 -0700 (PDT) Received: by 10.236.76.38 with SMTP id a26mr2399769yhe.98.1337159260369; Wed, 16 May 2012 02:07:40 -0700 (PDT) Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50]) by mx.google.com with ESMTPS id p38si736292ann.164.2012.05.16.02.07.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 02:07:40 -0700 (PDT) Received-SPF: pass (google.com: domain of robdclark@gmail.com designates 209.85.213.50 as permitted sender) client-ip=209.85.213.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of robdclark@gmail.com designates 209.85.213.50 as permitted sender) smtp.mail=robdclark@gmail.com; dkim=pass header.i=@gmail.com Received: by yhjj63 with SMTP id j63so594767yhj.37 for ; Wed, 16 May 2012 02:07:40 -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=IPo9TWnOXJNxfeoHBEnntJIgif2R56+dsc3prGCQ6Ew=; b=cH91FUT2WpbqubRlUd3WvSz0KpjlCPVXIq9J+5ozZ+W5vEuOqCvdcWXJe8Ci+lVjID wWwMo+kCiRXD8WegdJT+YduQpMOyjYwhDPNIE4V9XtdXzOuCXIQA4+0uRNQ+yT2wQLxy duAr6CD/IHLbdqEQenmS2FDMYS0uSLa4YQlgiYOnidruUJMYf60QF7SfiVZHI1n9U1iJ 7WOXj9UPMKGYkrilk6uaYnQ6Lzirb7jpAn8Tz1HhKONXnlh8FhoL83I8ni4253GZ3NNy AAJ3eRhB+5IicpNzt42EADHs5nvMTDz5Y6vAnVNn4kL4Bq9iUPvdl5qZkXjeCoEy15wc C7yQ== Received: by 10.60.6.8 with SMTP id w8mr2143705oew.3.1337159260024; Wed, 16 May 2012 02:07:40 -0700 (PDT) Received: from localhost (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id a6sm1801268obo.10.2012.05.16.02.07.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 May 2012 02:07:39 -0700 (PDT) Sender: Rob Clark From: Rob Clark To: dri-devel@lists.freedesktop.org Cc: patches@linaro.org, Paulo Zanoni , Rob Clark Subject: [PATCH libdrm 3/3] modetest: support plane properties Date: Wed, 16 May 2012 03:07:15 -0600 Message-Id: <1337159235-32741-4-git-send-email-rob.clark@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1337159235-32741-1-git-send-email-rob.clark@linaro.org> References: <1337159235-32741-1-git-send-email-rob.clark@linaro.org> X-Gm-Message-State: ALoCoQkY5jtrL3FOfBrXvB+E2pk6U6HqjxcSQxoE2h7OaMMqnMXGWdk0sR5Y188nfM7a57dS92xW From: Rob Clark Add support to display plane properties. Signed-off-by: Rob Clark --- tests/modetest/modetest.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index dea271a..dc84cf3 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -369,6 +369,7 @@ void dump_framebuffers(void) static void dump_planes(void) { + drmModeObjectPropertiesPtr props; drmModePlaneRes *plane_resources; drmModePlane *ovr; unsigned int i, j; @@ -403,6 +404,19 @@ static void dump_planes(void) printf(" %4.4s", (char *)&ovr->formats[j]); printf("\n"); + printf(" props:\n"); + props = drmModeObjectGetProperties(fd, ovr->plane_id, + DRM_MODE_OBJECT_PLANE); + if (props) { + for (j = 0; j < props->count_props; j++) + dump_prop(props->props[j], + props->prop_values[j]); + drmModeFreeObjectProperties(props); + } else { + printf("\tcould not get plane properties: %s\n", + strerror(errno)); + } + drmModeFreePlane(ovr); } printf("\n");