summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Atwood <matthew.s.atwood@intel.com>2020-06-18 08:27:07 -0700
committerPetri Latvala <petri.latvala@intel.com>2020-09-09 11:57:49 +0300
commit9c5dfeb0338d7f98ad998663a595eab71ea887f3 (patch)
tree8c8b5a3e94f0d55c94b33f7e64ce8c89b58108d1
parentf52bf19b5f02d52fc3e201c6467ec3f511227fba (diff)
tests/kms_plane_scaling: set minimum height and width to 20
Depending on pixel format for gen11+ platforms minimum width can be as high as 20. Set width and height to 20. Remove is_planar_yuv_format, no longer used. Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com> Signed-off-by: Sowmya Kaparthi <sowmyax.kaparthi@intel.com> Reviewed-by: Mika Kahola <mika.kahola@intel.com>
-rw-r--r--tests/kms_plane_scaling.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 19087286..ecd2c2e3 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -62,19 +62,6 @@ static int get_num_scalers(data_t* d, enum pipe pipe)
return 1;
}
-static bool is_planar_yuv_format(uint32_t pixelformat)
-{
- switch (pixelformat) {
- case DRM_FORMAT_NV12:
- case DRM_FORMAT_P010:
- case DRM_FORMAT_P012:
- case DRM_FORMAT_P016:
- return true;
- default:
- return false;
- }
-}
-
static void cleanup_fbs(data_t *data)
{
int i;
@@ -147,9 +134,7 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
mode = igt_output_get_mode(output);
/* create buffer in the range of min and max source side limit.*/
- width = height = 8;
- if (is_i915_device(d->drm_fd) && is_planar_yuv_format(pixel_format))
- width = height = 16;
+ width = height = 20;
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]);