Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar
@ 2018-03-15  5:42 Vidya Srinivas
  2018-03-15  6:05 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar (rev2) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Vidya Srinivas @ 2018-03-15  5:42 UTC (permalink / raw)
  To: igt-dev; +Cc: sunil.kamath, ville.syrjala

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@intel.com>
Signed-off-by: Vidya Srinivas <vidya.srinivas@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]);
-- 
2.7.4

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 15+ messages in thread
* [igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar
@ 2018-03-06  9:21 Vidya Srinivas
  2018-03-06  9:52 ` Maarten Lankhorst
  2018-03-06  9:53 ` Maarten Lankhorst
  0 siblings, 2 replies; 15+ messages in thread
From: Vidya Srinivas @ 2018-03-06  9:21 UTC (permalink / raw)
  To: igt-dev; +Cc: sunil.kamath, ville.syrjala

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 (for now NV12 as only that is supported).

Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Vidya Srinivas <vidya.srinivas@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..cf49015 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)
+		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]);
-- 
2.7.4

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-03-16 13:23 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-15  5:42 [igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar Vidya Srinivas
2018-03-15  6:05 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar (rev2) Patchwork
2018-03-15  6:52 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-03-15 10:50 ` [igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar Jani Nikula
2018-03-16  2:38   ` Srinivas, Vidya
2018-03-16  7:49     ` Jani Nikula
2018-03-16  8:08       ` Srinivas, Vidya
2018-03-15 17:03 ` Maarten Lankhorst
2018-03-16 13:23   ` Srinivas, Vidya
  -- strict thread matches above, loose matches on Subject: below --
2018-03-06  9:21 Vidya Srinivas
2018-03-06  9:52 ` Maarten Lankhorst
2018-03-06 10:15   ` Srinivas, Vidya
2018-03-06 15:39     ` Maarten Lankhorst
2018-03-06  9:53 ` Maarten Lankhorst
2018-03-06 10:14   ` Srinivas, Vidya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox