[igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar

Srinivas, Vidya vidya.srinivas at intel.com
Fri Mar 16 13:23:35 UTC 2018


Hi Maarten,

Apologies :(

From the CI results, I checked that when 17x17 buffer is requested, KMD makes it 16  and
again the check fails (which we added in skl_update_scaler in range check) and due to this we see igt exits
from pixel format test of kms_plane_scaling.

Also for underruns:
Until I give a multiplier of 4 (which will be > 16), it would take 16 only and hence the fifo underruns.

From BSpec: Display WA 1106:
Display corruption/color shift observed when using NV12 with 270 rotation or 90 rotation + horizontal flip.
WA: NV12 with 270 rotation or 90 rotation + horizontal flip requires the programmed plane height to be a multiple of 4.

We need to set width = height = 20 in i-g-t. I will send a FIXME patch. Can you please help merge?

Sorry, trybot did not catch it then as it considered the older i-g-t and showed scaler out of range for 9x9
And I assumed everything is right/expected.

Regards
Vidya


> -----Original Message-----
> From: Maarten Lankhorst [mailto:maarten.lankhorst at linux.intel.com]
> Sent: Thursday, March 15, 2018 10:33 PM
> To: Srinivas, Vidya <vidya.srinivas at intel.com>; igt-dev at lists.freedesktop.org
> Cc: Kamath, Sunil <sunil.kamath at intel.com>; Syrjala, Ville
> <ville.syrjala at intel.com>; Shankar, Uma <uma.shankar at intel.com>
> Subject: Re: [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum
> fb height for YUV 420 planar
> 
> Op 15-03-18 om 06:42 schreef Vidya Srinivas:
> > When the plane scaling is used with YUV 420 planar formats, the height
> > should be a minimum of 16 scanlines as per BSpec.
> > Minimum of 8 scanlines is for non-YUV 420 planar formats.
> > Patch changes the minimum fb height being used in the test in case of
> > YUV 420 planar (currently done for NV12, as that is the only planar
> > format supported)
> >
> > v2: Addressed review comments from Maarten
> >
> > 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, 2 insertions(+)
> >
> > diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> > index 4408e5c..36fcfc0 100644
> > --- a/tests/kms_plane_scaling.c
> > +++ b/tests/kms_plane_scaling.c
> > @@ -131,6 +131,8 @@ 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;
> >  	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]);
> 
> No way that CI can test this currently. so pushed. :)
> 
> Thanks for the patch.



More information about the igt-dev mailing list