summaryrefslogtreecommitdiff
path: root/tests/kms_plane_scaling.c
diff options
context:
space:
mode:
authorVidya Srinivas <vidya.srinivas@intel.com>2018-03-15 11:12:22 +0530
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-03-15 18:01:51 +0100
commit17ae4da9059464b9386dd56b07f29322c914ff7b (patch)
treea40f895a528605cc763b08da73ff6477bd6a97b7 /tests/kms_plane_scaling.c
parent1cacca207a71695bc46e994c05a691f89e152492 (diff)
tests/kms_plane_scaling: Change minimum fb height for YUV 420 planar
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> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r--tests/kms_plane_scaling.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 4408e5ce..36fcfc0a 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]);