[igt-dev] [PATCH i-g-t] tests: Open DRM_MASTER for display operations
Saarinen, Jani
jani.saarinen at intel.com
Wed Dec 18 11:31:38 UTC 2019
Hi,
> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Chris
> Wilson
> Sent: keskiviikko 18. joulukuuta 2019 13.20
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t] tests: Open DRM_MASTER for display operations
>
> To configure the display, one is required to be the DRM_MASTER.
>
> Closes: https://gitlab.freedesktop.org/drm/intel/issues/855
Is this change also for : https://gitlab.freedesktop.org/drm/intel/issues/844 ?
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> tests/kms_content_protection.c | 2 +-
> tests/kms_panel_fitting.c | 2 +-
> tests/kms_plane_alpha_blend.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
> index 8b361fdef..3b9cedcb4 100644
> --- a/tests/kms_content_protection.c
> +++ b/tests/kms_content_protection.c
> @@ -654,7 +654,7 @@ static void test_content_protection_cleanup(void)
> igt_main
> {
> igt_fixture {
> - data.drm_fd = drm_open_driver(DRIVER_ANY);
> + data.drm_fd =
> drm_open_driver_master(DRIVER_ANY);
>
> igt_display_require(&data.display, data.drm_fd);
> }
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c index
> ac24730f8..065fc2df8 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -252,7 +252,7 @@ igt_main
> data_t data = {};
>
> igt_fixture {
> - data.drm_fd = drm_open_driver(DRIVER_ANY);
> + data.drm_fd =
> drm_open_driver_master(DRIVER_ANY);
> igt_display_require(&data.display, data.drm_fd);
> igt_display_require_output(&data.display);
> }
> diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
> index d7dc44ab9..085099f81 100644
> --- a/tests/kms_plane_alpha_blend.c
> +++ b/tests/kms_plane_alpha_blend.c
> @@ -565,7 +565,7 @@ igt_main
> enum pipe pipe;
>
> igt_fixture {
> - data.gfx_fd = drm_open_driver(DRIVER_ANY);
> + data.gfx_fd =
> drm_open_driver_master(DRIVER_ANY);
> igt_require_pipe_crc(data.gfx_fd);
> igt_display_require(&data.display, data.gfx_fd);
> igt_require(data.display.is_atomic);
> --
> 2.24.1
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list