diff options
author | Mika Kahola <mika.kahola@intel.com> | 2019-03-21 15:39:25 +0200 |
---|---|---|
committer | Mika Kahola <mika.kahola@intel.com> | 2019-03-22 09:12:22 +0200 |
commit | be2f88cd36fd4ba836d9f2453e90673c86649489 (patch) | |
tree | cbfd379c5a1403c50e6bee7224b3e6da88377c90 /tests/kms_plane_scaling.c | |
parent | e12d69496a6bef09ac6c0f792b8d60a65cf5e0bf (diff) |
tests/kms_plane_scaling: Minimum width and height for planar YUV formats on i915 devices
Use minimum of 16x16 size for i915 devices only as other HW's may have different limitations.
The default is 8x8.
Suggested-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 01f5f7c9..10c852d5 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -149,7 +149,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 = 8; - if (is_planar_yuv_format(pixel_format)) + if (is_i915_device(d->drm_fd) && is_planar_yuv_format(pixel_format)) width = height = 16; igt_create_color_fb(display->drm_fd, width, height, pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]); |