From: Sagar Arun Kamble Subject: Re: Getting primary plane_id in i-g-t Date: Thu, 12 Jun 2014 16:31:12 +0530 Message-ID: <1402570872.3724.38.camel@sagar-desktop> References: <53998612.4070504@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 0716E6E901 for ; Thu, 12 Jun 2014 04:00:30 -0700 (PDT) In-Reply-To: <53998612.4070504@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Jindal, Sonika" Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Including Ville in the thread. I feel we need to update following structure to reflect plane type. struct drm_mode_get_plane { __u32 plane_id; __u32 crtc_id; __u32 fb_id; __u32 possible_crtcs; __u32 gamma_size; __u32 count_format_types; __u64 format_type_ptr; }; On Thu, 2014-06-12 at 16:20 +0530, Jindal, Sonika wrote: > Hi, > > I am writing i-g-t for primary plane 180 degree rotation. > How can we get plane_id for primary plane? > Following call returns an igt_plane_t for primary plane: > igt_output_get_plane(test_data->output, IGT_PLANE_PRIMARY) > > But this has drm_plane as null, so couldn't get plane_id. > > Then I tried getting planes from drmModeGetPlaneResources and > drmModeGetPlane. But I am getting only sprite planes from that call. > > I also tried, drmSetClientCap but can't figure out which plane is primary. > > Is there a way to get primary plane and the plane_id for that? > > Thanks, > Sonika