[igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: fb height to be min 16 for NV12

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Tue Apr 3 08:41:30 UTC 2018


Op 02-04-18 om 10:14 schreef Vidya Srinivas:
> Per Bspec, fb height needs to be min 16 for NV12 (YUV planar
> formats). We also need the src height and width to be
> multiple of 4.
>
> Reviewed-By: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Signed-off-by: Uma Shankar <uma.shankar at intel.com>
> Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
> ---
>  tests/kms_plane_scaling.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 36fcfc0..9d3fe95 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -132,7 +132,7 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
>  	/* create buffer in the range of  min and max source side limit.*/
>  	width = height = 9;
>  	if (pixel_format == DRM_FORMAT_NV12)
> -		width = height = 17;
> +		width = height = 16;
>  	igt_create_color_fb(display->drm_fd, width, height,
>  		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
>  	igt_plane_set_fb(plane, &d->fb[0]);

Pushed, thanks.

Hopefully we can get the kernel issues sorted out and have full test coverage next time kernel NV12 series are sent. :)



More information about the igt-dev mailing list