[igt-dev] [PATCH] tests/kms_writeback.c: Prevents test failure by the XR48/AR48 format

Petri Latvala petri.latvala at intel.com
Wed Oct 13 09:02:08 UTC 2021


On Mon, Oct 11, 2021 at 08:43:20PM -0300, Igor Torrente wrote:
> The test fails if the driver exposes the XR48/AR48 (XRGB16161616/ARGB16161616)
> formats, altough it doesn't test any format beyond XR24(XRGB88888).
> 
> This failure happens because the format validation doesn't contain the
> number '8' in the list of valid char.
> 
> This patch adds it to the list.
> 
> Signed-off-by: Igor Torrente <igormtorrente at gmail.com>

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


> ---
>  tests/kms_writeback.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_writeback.c b/tests/kms_writeback.c
> index 03edb7af..21d62faa 100644
> --- a/tests/kms_writeback.c
> +++ b/tests/kms_writeback.c
> @@ -386,7 +386,7 @@ igt_main
>  	igt_describe("Check the writeback format");
>  	igt_subtest("writeback-pixel-formats") {
>  		drmModePropertyBlobRes *formats_blob = get_writeback_formats_blob(output);
> -		const char *valid_chars = "0123456 ABCGNRUVXY";
> +		const char *valid_chars = "01234568 ABCGNRUVXY";
>  		unsigned int i;
>  		char *c;
>  
> -- 
> 2.30.2
> 


More information about the igt-dev mailing list