From 2b74b2bb3358f80c72240d1a5ea6f304b21fba8d Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Fri, 27 Mar 2015 20:51:46 +0200 Subject: tests: Add kms_legacy_colorkey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ä --- lib/igt_kms.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3