Modesetting requires DRM_MASTER privileges, so use
drm_open_driver_master() to assert that we do acquire them.

References: https://bugs.freedesktop.org/show_bug.cgi?id=105997
Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>
---
 tests/kms_plane_scaling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 9d3fe958..a8454205 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -532,7 +532,7 @@ igt_main
        igt_skip_on_simulation();
 
        igt_fixture {
-               data.drm_fd = drm_open_driver(DRIVER_INTEL);
+               data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
                igt_require_pipe_crc(data.drm_fd);
                igt_display_init(&data.display, data.drm_fd);
                data.devid = intel_get_drm_devid(data.drm_fd);
-- 
2.17.0

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

Reply via email to