lib/display: Add support for DRM planes

We can now extend our plane support beyond primary and cursor planes.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2014-02-06 17:54:33 +00:00
parent 1c608a2af8
commit f0e0b2ae65
2 changed files with 120 additions and 2 deletions
+6
View File
@@ -116,7 +116,13 @@ typedef struct {
int index;
unsigned int is_primary : 1;
unsigned int is_cursor : 1;
unsigned int fb_changed : 1;
unsigned int position_changed : 1;
/*
* drm_plane can be NULL for primary and cursor planes (when not
* using the atomic modeset API)
*/
drmModePlane *drm_plane;
struct kmstest_fb *fb;
/* position within pipe_src_w x pipe_src_h */
int crtc_x, crtc_y;