[igt-dev] [PATCH i-g-t] [i-g-t] tests/kms_plane_scaling: modify fb height for yuv planar
Vidya Srinivas
vidya.srinivas at intel.com
Wed Mar 21 05:04:04 UTC 2018
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 <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 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 36fcfc0..8dc6038 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -131,8 +131,9 @@ 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 = 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]);
--
2.7.4
More information about the igt-dev
mailing list