diff mbox

[igt] igt/kms_plane_scaling: Open DRM_MASTER

Message ID 20180412084311.18075-1-chris@chris-wilson.co.uk (mailing list archive)
State New, archived
Headers show

Commit Message

Chris Wilson April 12, 2018, 8:43 a.m. UTC
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 <chris@chris-wilson.co.uk>
---
 tests/kms_plane_scaling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Antonio Argenziano April 12, 2018, 2:36 p.m. UTC | #1
On 12/04/18 01:43, Chris Wilson wrote:
> 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 <chris@chris-wilson.co.uk>

Acked-by: Antonio Argenziano <antonio.argenziano@intel.com>
diff mbox

Patch

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);