diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-05 10:10:13 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-08 12:44:31 +0100 |
commit | 98dc0454c023985cb31de2578c941391a900e941 (patch) | |
tree | 56f7b25d0ea495ab74e28f8dfbe3005043f2dea1 /drivers/gpu/drm/i915/selftests/igt_flush_test.h | |
parent | c11c7bfd213495784b22ef82a69b6489f8d0092f (diff) | |
download | linux-rt-98dc0454c023985cb31de2578c941391a900e941.tar.gz |
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.h | 14 |
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 */ |