[Intel-gfx] [PATCH igt] igt/gem_exec_nop: Headless requires DRM_MASTER for modesetting
Chris Wilson
chris at chris-wilson.co.uk
Sat Aug 26 14:03:22 UTC 2017
Since the headless subtest wants to compare execution latency of a
headless mode vs a single head, it needs to be able to do a modeset and
ergo it requires DRM_MASTER.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
tests/gem_exec_nop.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c
index fdb1413e..f6289874 100644
--- a/tests/gem_exec_nop.c
+++ b/tests/gem_exec_nop.c
@@ -669,8 +669,11 @@ igt_main
sequential(device, handle, FORKED | CONTEXT, 150);
#if !defined(ANDROID) || ANDROID_HAS_CAIRO
- igt_subtest("headless")
+ igt_subtest("headless") {
+ /* Requires master for changing display modes */
+ igt_require(drmSetMaster(fd) == 0);
headless(device, handle);
+ }
#endif
igt_fixture {
--
2.14.1
More information about the Intel-gfx
mailing list