aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/igt_flush_test.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-05-05 10:10:13 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-05-08 12:44:31 +0100
commit98dc0454c023985cb31de2578c941391a900e941 (patch)
tree56f7b25d0ea495ab74e28f8dfbe3005043f2dea1 /drivers/gpu/drm/i915/selftests/igt_flush_test.h
parentdrm/i915/userptr: reject zero user_size (diff)
downloadlinux-dev-98dc0454c023985cb31de2578c941391a900e941.tar.xz
linux-dev-98dc0454c023985cb31de2578c941391a900e941.zip
drm/i915/selftests: Refactor common flush_test()
Pull igt_flush_test() out into its own library before copying and pasting the code for a third time. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180505091014.26126-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/igt_flush_test.h')
-rw-r--r--drivers/gpu/drm/i915/selftests/igt_flush_test.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/igt_flush_test.h b/drivers/gpu/drm/i915/selftests/igt_flush_test.h
new file mode 100644
index 000000000000..63e009927c43
--- /dev/null
+++ b/drivers/gpu/drm/i915/selftests/igt_flush_test.h
@@ -0,0 +1,14 @@
+/*
+ * SPDX-License-Identifier: MIT
+ *
+ * Copyright © 2018 Intel Corporation
+ */
+
+#ifndef IGT_FLUSH_TEST_H
+#define IGT_FLUSH_TEST_H
+
+struct drm_i915_private;
+
+int igt_flush_test(struct drm_i915_private *i915, unsigned int flags);
+
+#endif /* IGT_FLUSH_TEST_H */