[igt-dev] [PATCH] tests/kms_plane_cursor: igt_require_pipe_crc for test_init

Petri Latvala petri.latvala at intel.com
Thu Oct 28 08:07:28 UTC 2021


On Wed, Oct 27, 2021 at 02:24:04PM -0400, Mark Yacoub wrote:
> From: Mark Yacoub <markyacoub at google.com>
> 
> [Why]
> test_init uses CRC in debugfs which is not supported by some drivers.
> 
> [How]
> igt_require_pipe_crc before igt_pipe_crc_new is called.
> 
> Test: igt at kms_plane_cursor@pipe-A-overlay-size-64 on ChromeOS Jacuzzi
> (MTK)
> 
> Signed-off-by: Mark Yacoub <markyacoub at chromium.org>

Reviewed-by: Petri Latvala <petri.latvala at intel.com>

> ---
>  tests/kms_plane_cursor.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/kms_plane_cursor.c b/tests/kms_plane_cursor.c
> index 9bda4746..73085cc8 100644
> --- a/tests/kms_plane_cursor.c
> +++ b/tests/kms_plane_cursor.c
> @@ -76,6 +76,7 @@ static void test_init(data_t *data, enum pipe pipe_id)
>  	data->overlay = igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_OVERLAY);
>  	data->cursor = igt_pipe_get_plane_type(data->pipe, DRM_PLANE_TYPE_CURSOR);
>  
> +	igt_require_pipe_crc(data->drm_fd);
>  	data->pipe_crc = igt_pipe_crc_new(data->drm_fd, data->pipe_id,
>  					  INTEL_PIPE_CRC_SOURCE_AUTO);
>  
> -- 
> 2.33.0.1079.g6e70778dc9-goog
> 


More information about the igt-dev mailing list