The following two patches are the rework of the patch series sent two weeks ago [1] that add libdrm support for render node manipulation. All notes described in [1] apply. A new option to render_node_add utility has been added to specify the number of planes and plane IDs are supposed to be the last in the ID list.
Regards, -- Ilija
----
[1] http://lists.freedesktop.org/archives/dri-devel/2012-March/020782.html