[igt-dev] [PATCH] tests/kms_plane_alpha_blend: skip coverage tests on missing enum

Harry Wentland harry.wentland at amd.com
Tue Nov 9 18:14:10 UTC 2021


On 2021-11-04 12:27, Simon Ser wrote:
> Some KMS drivers support the KMS "pixel blend mode" plane property,
> but don't support the "Coverage" mode. This enum entry is missing
> to indicate lack of support as seen in this drm_info exerpt:
> 
>     "pixel blend mode": enum {None, Pre-multiplied} = Pre-multiplied
> 
> Skip the coverage tests in this case.

Is "coverage" interesting for compositors? We have the ability to do
pre-multiplied or coverage in HW but it's not hooked up currently.

Harry

> 
> Signed-off-by: Simon Ser <contact at emersion.fr>
> Cc: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> Cc: Harry Wentland <harry.wentland at amd.com>
> Cc: Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>
> ---
>  tests/kms_plane_alpha_blend.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
> index 9e4ee22b43af..d061262da196 100644
> --- a/tests/kms_plane_alpha_blend.c
> +++ b/tests/kms_plane_alpha_blend.c
> @@ -419,7 +419,7 @@ static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  	igt_crc_t ref_crc = {}, crc = {};
>  	int i;
>  
> -	igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage");
> +	igt_require(igt_plane_try_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage"));
>  	igt_display_commit2(display, COMMIT_ATOMIC);
>  	igt_pipe_crc_start(data->pipe_crc);
>  
> @@ -451,7 +451,7 @@ static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t
>  	if (plane->type != DRM_PLANE_TYPE_PRIMARY)
>  		igt_plane_set_fb(igt_pipe_get_plane_type(&display->pipes[pipe], DRM_PLANE_TYPE_PRIMARY), &data->gray_fb);
>  
> -	igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage");
> +	igt_require(igt_plane_try_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage"));
>  	igt_plane_set_fb(plane, &data->argb_fb_cov_7e);
>  	igt_display_commit2(display, COMMIT_ATOMIC);
>  	igt_pipe_crc_start(data->pipe_crc);
> 



More information about the igt-dev mailing list