diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-11-02 10:20:15 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-11-11 14:20:55 +0000 |
commit | 0986b432f874db0f263958fa07feb1a83ba1bae4 (patch) | |
tree | 7083cb3ffd0a617d5d6296f690bb8932c6fecaa8 /lib | |
parent | 2643793255084362e02bb1ca2ab5031de2d5dc59 (diff) |
lib: add PIPE_ANY to the pipe enum
This avoids compiler warnings about invalid enum values.
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_kms.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 09c08aa8..965c47c1 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -40,6 +40,7 @@ /* Low-level helpers with kmstest_ prefix */ enum pipe { + PIPE_ANY = -1, PIPE_A = 0, PIPE_B, PIPE_C, @@ -278,12 +279,6 @@ void igt_wait_for_vblank(int drm_fd, enum pipe pipe); 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 - */ -#define PIPE_ANY (-1) - #define IGT_FIXED(i,f) ((i) << 16 | (f)) void igt_enable_connectors(void); |