summaryrefslogtreecommitdiff
path: root/tests/kms_rotation_crc.c
diff options
context:
space:
mode:
authorPatnana Venkata Sai <venkata.sai.patnana@intel.com>2021-07-01 09:31:14 +0530
committerSwati Sharma <swati2.sharma@intel.com>2021-07-01 18:06:01 +0530
commit9b5d5347f5ae47ee3dd3ca9e181c4012b681828d (patch)
tree493641f83e6e4ff7de1ca314952d5b9ece6dfba2 /tests/kms_rotation_crc.c
parent5bb62cb290fa32777934de4b39e107ccd282f7e8 (diff)
tests/kms_rotation_crc: Skip 90/270 rotation for ADL-P
ADL-P platform doesn't support 90/270 rotation. Let's skip to test with these rotations. Cc: Juha-Pekka Heikkilä <juha-pekka.heikkila@intel.com> Cc: Karthik B S <karthik.b.s@intel.com> Signed-off-by: Patnana Venkata Sai <venkata.sai.patnana@intel.com> Reviewed-by: Karthik B S <karthik.b.s@intel.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r--tests/kms_rotation_crc.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index 20556c82..811f295e 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -737,6 +737,14 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
(planeconfigs[j].rotation & (IGT_ROTATION_90 | IGT_ROTATION_270))
&& intel_display_ver(data->devid) < 11)
continue;
+
+ if ((planeconfigs[i].rotation & (IGT_ROTATION_90 | IGT_ROTATION_270))
+ && intel_display_ver(data->devid) >= 13)
+ continue;
+
+ if ((planeconfigs[j].rotation & (IGT_ROTATION_90 | IGT_ROTATION_270))
+ && intel_display_ver(data->devid) >= 13)
+ continue;
/*
* if using packed formats crc's will be
* same and can store them so there's
@@ -1042,8 +1050,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
rot_test_str(subtest->rot)) {
if (is_i915_device(data.gfx_fd)) {
igt_require(!(subtest->rot &
- (IGT_ROTATION_90 | IGT_ROTATION_270)) ||
- gen >= 9);
+ (IGT_ROTATION_90 | IGT_ROTATION_270)) ||
+ (gen >= 9 && gen < 13));
} else if (is_amdgpu_device(data.gfx_fd)) {
data.override_fmt = DRM_FORMAT_XRGB8888;
if (subtest->rot & (IGT_ROTATION_90 | IGT_ROTATION_270))
@@ -1060,7 +1068,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_describe("Rotation test with 90 degree for a plane of gen9+ with given position");
igt_subtest_f("sprite-rotation-90-pos-100-0") {
- igt_require(gen >= 9);
+ igt_require(gen >=9 && gen < 13);
data.rotation = IGT_ROTATION_90;
data.pos_x = 100,
data.pos_y = 0;
@@ -1075,7 +1083,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
* so apart from this, any other gen11+ pixel format
* can be used which doesn't support 90/270 degree
* rotation */
- igt_require(gen >= 9);
+ igt_require(gen >=9 && gen < 13);
data.rotation = IGT_ROTATION_90;
data.override_fmt = gen < 11 ? DRM_FORMAT_RGB565 : DRM_FORMAT_Y212;
test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, true);
@@ -1084,7 +1092,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_describe("Checking unsupported tiling for gen9+ with 90 degree of rotation");
igt_subtest_f("bad-tiling") {
- igt_require(gen >= 9);
+ igt_require(gen >=9 && gen < 13);
data.rotation = IGT_ROTATION_90;
data.override_tiling = LOCAL_I915_FORMAT_MOD_X_TILED;
test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, true);
@@ -1100,6 +1108,9 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
(IS_CHERRYVIEW(data.devid) && reflect_x->rot == IGT_ROTATION_0
&& reflect_x->tiling == LOCAL_I915_FORMAT_MOD_X_TILED));
data.rotation = (IGT_REFLECT_X | reflect_x->rot);
+ igt_require(!(gen >= 13 && (data.rotation &
+ (IGT_ROTATION_90 |
+ IGT_ROTATION_270))));
data.override_tiling = reflect_x->tiling;
test_plane_rotation(&data, DRM_PLANE_TYPE_PRIMARY, false);
}
@@ -1155,7 +1166,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
enum pipe pipe;
igt_output_t *output;
- igt_require(gen >= 9);
+ igt_require(gen >= 9 && gen < 13);
igt_display_require_output(&data.display);
for_each_pipe_with_valid_output(&data.display, pipe, output) {