[RFC][PATCH 0/2] libdrm: Atomic mode setting stuff

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Fri May 25 01:07:26 PDT 2012


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


More information about the dri-devel mailing list