Skip to contentSkip to conversation

tests/kms_plane_scaling: modify fb height for yuv planar

PATCH New Vidya Srinivas 1 participant 1 message Mar 21, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_plane_scaling: modify fb height for yuv planar

fb src height to be more than minimum scanlines for planar formats like NV12. Changing the fb height to 19
so that the height is more than min value after KMD adjustments

Credits-to: Maarten Lankhorst <[email protected]>

---
 tests/kms_plane_scaling.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
tests/kms_plane_scaling.c +4 -2
index 36fcfc0..db357fa 100644
@@ -131,8 +131,10 @@ 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;
+	if (pixel_format == DRM_FORMAT_NV12) {
+		width = 19;
+		height = 19;
+	}
 	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]);
Signature · 6 lines
2.7.4

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev