diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2018-08-27 15:27:33 +0300 |
---|---|---|
committer | Mika Kahola <mika.kahola@intel.com> | 2018-09-06 13:39:16 +0300 |
commit | 7d695419d774c9992d683f8da194fe7932d5e8ec (patch) | |
tree | e2596f5bb8a70763cd4debe0b017b91dce71542a /tests/kms_plane_scaling.c | |
parent | 8884101aa01aedee01b2c3d0ac075473384551b7 (diff) |
tests/kms_plane_scaling: Allow DRM_FORMAT_RGB565 rotation on gen>=11
Test DRM_FORMAT_RGB565 rotation when gen is 11 or higher.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Diffstat (limited to 'tests/kms_plane_scaling.c')
-rw-r--r-- | tests/kms_plane_scaling.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index 2f19a428..7c64ed14 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -156,10 +156,10 @@ static const igt_rotation_t rotations[] = { IGT_ROTATION_270, }; -static bool can_rotate(unsigned format) +static bool can_rotate(data_t *d, unsigned format) { if (format == DRM_FORMAT_C8 || - format == DRM_FORMAT_RGB565) + (intel_gen(d->devid) < 11 && format == DRM_FORMAT_RGB565)) return false; return true; @@ -180,7 +180,8 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe, igt_rotation_t rot = rotations[i]; for (int j = 0; j < plane->drm_plane->count_formats; j++) { unsigned format = plane->drm_plane->formats[j]; - if (igt_fb_supported_format(format) && can_rotate(format)) + if (igt_fb_supported_format(format) && + can_rotate(d, format)) check_scaling_pipe_plane_rot(d, plane, format, LOCAL_I915_FORMAT_MOD_Y_TILED, pipe, output, rot); |