diff options
| author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-03-27 20:51:46 +0200 |
|---|---|---|
| committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2015-04-16 16:49:46 +0300 |
| commit | 2b74b2bb3358f80c72240d1a5ea6f304b21fba8d (patch) | |
| tree | 697a9aa4ee3d666be3ca317e5e5a2456220f8ba0 /lib | |
| parent | 4271b15f3c8df92f7f0e5201b292644d66da0054 (diff) | |
tests: Add kms_legacy_colorkey
Add a quick test to make sure the legacy set colorkey ioctl only works
for sprite planes.
v2: Drop igt_fixtures
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/igt_kms.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 42363c2a..09c08aa8 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -274,6 +274,10 @@ void igt_wait_for_vblank(int drm_fd, enum pipe pipe); #define for_each_pipe(display, pipe) \ for (pipe = 0; pipe < igt_display_get_n_pipes(display); pipe++) \ +#define for_each_plane_on_pipe(display, pipe, plane) \ + for (int i__ = 0; (plane) = &(display)->pipes[(pipe)].planes[i__], \ + i__ < (display)->pipes[(pipe)].n_planes; i__++) + /* * Can be used with igt_output_set_pipe() to mean we don't care about the pipe * that should drive this output |
