diff options
author | Mika Kahola <mika.kahola@intel.com> | 2018-05-23 14:47:37 +0300 |
---|---|---|
committer | Mika Kahola <mika.kahola@intel.com> | 2018-05-24 10:14:09 +0300 |
commit | 4d0920216bfbfe96a95c62eb6b04190c72aedeab (patch) | |
tree | 808b074a438404561c3c4b2cdde899e6129065df /lib/igt_kms.h | |
parent | 71c7a5740913d2618f44bca252669efe8a84f4c9 (diff) |
tests: Move wait_for_pageflip as library function
Two tests uses the very same wait_for_pageflip() routine. These tests are
'kms_rotation_crc' and 'kms_flip_tiling'. In order to decrease code
repetition, let's move this function as part of kms function collection
in igt_kms.
No functional changes.
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r-- | lib/igt_kms.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 0e75d0c9..45252388 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -222,6 +222,7 @@ uint32_t kmstest_dumb_create(int fd, int width, int height, int bpp, void *kmstest_dumb_map_buffer(int fd, uint32_t handle, uint64_t size, unsigned prot); +void kmstest_wait_for_pageflip(int fd); unsigned int kmstest_get_vblank(int fd, int pipe, unsigned int flags); void igt_assert_plane_visible(int fd, enum pipe pipe, bool visibility); |