From patchwork Mon Nov 14 09:59:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9426959 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 07C4860471 for ; Mon, 14 Nov 2016 10:00:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F23DA286D4 for ; Mon, 14 Nov 2016 10:00:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E739C286FE; Mon, 14 Nov 2016 10:00:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 746B8286D4 for ; Mon, 14 Nov 2016 10:00:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 136A26E3A5; Mon, 14 Nov 2016 09:59:53 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id 376A46E397; Mon, 14 Nov 2016 09:59:49 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id 144so5963547pfv.0; Mon, 14 Nov 2016 01:59:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Nqupvo/OcDe3HP/LBJs0NW4Xl4l2fqABDeokieXg/K0=; b=JO0IMjMV31jLkt3PPjn29KpFjxX/XlA3d3t2n3Ed8bdw3nWVVAickEYHnPKjcoUas8 l16RShylJ89RuMd/ROSxeFZbDcRT3khJKiBw0vMJbKrBcXC0cuo+4c15iYkIdZZhO4wX UZMO7xZNOLB/ky/D2QezFwZY8aGU5i+3VLAKAw2+dMu38p5TBUH16yJ5MLsuYvmIfgCV mksxtcDsGeh+RLYqCjvT6mySCb1kGlSEN3KQBmlCy6VzzjwBZb80ooDVYrhLaL2MplUd lRxlsXbgXEGkz28Hr3ul62NGxr2WpaVNXc0ITEijexJgFCdQuJArT7+SCR+T8fLPhPSo thRw== X-Gm-Message-State: ABUngvfj4f+0JdTU7Yryp7VSNdAef+vujjtm6BhtIwDVY0ph6CTQcoksOEtLC9Xya2FYPQ== X-Received: by 10.99.19.71 with SMTP id 7mr27920369pgt.38.1479117588754; Mon, 14 Nov 2016 01:59:48 -0800 (PST) Received: from jade.nodan1.kt.home.ne.jp (202-72-64-164.koalanet.ne.jp. [202.72.64.164]) by smtp.gmail.com with ESMTPSA id p125sm14320235pfg.33.2016.11.14.01.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 01:59:48 -0800 (PST) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Date: Mon, 14 Nov 2016 18:59:18 +0900 Message-Id: <1479117566-17709-7-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1479117566-17709-1-git-send-email-gustavo@padovan.org> References: <1479117566-17709-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH 04/12] lib/igt_kms: export properties names X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Signed-off-by: Gustavo Padovan --- lib/igt_kms.c | 6 +++--- lib/igt_kms.h | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index aa9fd16..8aaff5b 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -153,7 +153,7 @@ const unsigned char* igt_kms_get_base_edid(void) #define EDID_NAME alt_edid #include "igt_edid_template.h" -static const char *igt_plane_prop_names[IGT_NUM_PLANE_PROPS] = { +const char *igt_plane_prop_names[IGT_NUM_PLANE_PROPS] = { "SRC_X", "SRC_Y", "SRC_W", @@ -168,7 +168,7 @@ static const char *igt_plane_prop_names[IGT_NUM_PLANE_PROPS] = { "rotation" }; -static const char *igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = { +const char *igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = { "background_color", "CTM", "DEGAMMA_LUT", @@ -177,7 +177,7 @@ static const char *igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = { "ACTIVE" }; -static const char *igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { +const char *igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { "scaling mode", "CRTC_ID" }; diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 6422adc..ae2b505 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -113,12 +113,16 @@ enum igt_atomic_crtc_properties { IGT_NUM_CRTC_PROPS }; +extern const char *igt_crtc_prop_names[]; + enum igt_atomic_connector_properties { IGT_CONNECTOR_SCALING_MODE = 0, IGT_CONNECTOR_CRTC_ID, IGT_NUM_CONNECTOR_PROPS }; +extern const char *igt_connector_prop_names[]; + struct kmstest_connector_config { drmModeCrtc *crtc; drmModeConnector *connector; @@ -214,6 +218,7 @@ enum igt_atomic_plane_properties { IGT_NUM_PLANE_PROPS }; +extern const char *igt_plane_prop_names[]; typedef struct igt_display igt_display_t; typedef struct igt_pipe igt_pipe_t;