From: ville.syrjala@linux.intel.com Subject: [RFC][PATCH 0/2] libdrm: Atomic mode setting stuff Date: Fri, 25 May 2012 11:07:26 +0300 Message-ID: <1337933248-29591-1-git-send-email-ville.syrjala@linux.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 A01859E789 for ; Fri, 25 May 2012 01:07:53 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Here's the libdrm part of the atomic mode setting stuff. There's a new object I christened drmModePropertySet. It's an opaque object which is used to keep track of property changes for the user. Internally it's just a linked list of object_id/property_id/property_value tuples. The list is sorted based on object_id and property_id to avoid duplicates. The YUYV libkms patch is there just because my test app was more geared towards YUV than RGB, and I was too lazy to make the switch to RGB. I also stripped out a bunch of gunk from my test app and pushed the result to gitorious [1]. What it does is move/resize the plane and flips the CRTC fb at the same time using the new API. The app has a rudimentary keyboard control mechanism: 't' toggles an automatic test mode 's','z','x','c' move the plane 'S','Z','X','C' change the plane size 'f' fills the plane with a pattern, the color changes each time 'b' fills the plane with color bars 'l' loads a ppm (P6) image into the plane 'o' toggles the plane on/off 'q' quits [1] https://gitorious.org/vsyrjala/plane