[PATCH igt] igt/gem_exec_nop: Headless requires DRM_MASTER for modesetting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux