summaryrefslogtreecommitdiff
path: root/lib/igt_kms.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-12-07 09:21:36 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-01-02 09:38:45 +0100
commit98c64b33a7935fb334c73bb0fc9e76f416b81069 (patch)
tree89cc360dfe3a59d5bde4b43fbfcd372a15f4c0d3 /lib/igt_kms.h
parent4cd4cc4873fc1c916b6bf7b058b12294e16dfd98 (diff)
lib/igt_kms: Drop all stale events on first commit.
I've been trying to make kms_cursor_legacy work when subtests fail. Other subtests will start failing too because of expired events or stale pipe crc. The latter can be resolved in the test, but the former could affect other tests Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> [mlankhorst: Change return status to int, so callers can see how many events are swallowed.] Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kms.h')
-rw-r--r--lib/igt_kms.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index cfe646ae..7b1ae8b5 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -365,6 +365,7 @@ int igt_display_commit(igt_display_t *display);
int igt_display_try_commit_atomic(igt_display_t *display, uint32_t flags, void *user_data);
void igt_display_commit_atomic(igt_display_t *display, uint32_t flags, void *user_data);
int igt_display_try_commit2(igt_display_t *display, enum igt_commit_style s);
+int igt_display_drop_events(igt_display_t *display);
int igt_display_get_n_pipes(igt_display_t *display);
void igt_display_require_output(igt_display_t *display);
void igt_display_require_output_on_pipe(igt_display_t *display, enum pipe pipe);