summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVidya Srinivas <vidya.srinivas@intel.com>2018-04-02 13:44:14 +0530
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-04-03 10:16:54 +0200
commitda00bf83aba3b516922efa1f338381189461aa4a (patch)
tree9a9a676601bc177e32ea7359996f74c986861692 /tests
parent8d61c95ad017322e4d0744e63f2a5db3c510ab19 (diff)
tests/kms_plane_scaling: fb height to be min 16 for NV12
Per Bspec, fb height needs to be min 16 for NV12 (YUV planar formats). We also need the src height and width to be multiple of 4. Reviewed-By: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Uma Shankar <uma.shankar@intel.com> Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_plane_scaling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 36fcfc0a..9d3fe958 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -132,7 +132,7 @@ 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;
+ width = 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]);