[PATCH i-g-t v1] tests/kms_plane_scaling: Skip scalar2 downscale tests on Intel Gen14+ with specific conditions
Naladala Ramanaidu
ramanaidu.naladala at intel.com
Thu Jul 3 06:03:53 UTC 2025
Add a conditional check to skip tests involving scalar2 downscale
operations on Intel devices. This avoids running unsupported
scenarios and helps prevent potential test failures.
Bspec: 69901
Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala at intel.com>
---
tests/kms_plane_scaling.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 63d35d76b..353e3054b 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -1536,6 +1536,16 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_describe(scaler_with_2_planes_tests[index].describe);
igt_subtest_with_dynamic(scaler_with_2_planes_tests[index].name) {
for_each_pipe(&data.display, pipe) {
+ if (is_intel_device(data.drm_fd) &&
+ (intel_display_ver(data.devid) >= 14) &&
+ ((scaler_with_2_planes_tests[index].test_type ==
+ TEST_PLANES_DOWNSCALE) ||
+ (scaler_with_2_planes_tests[index].test_type ==
+ TEST_PLANES_UPSCALE_DOWNSCALE)) &&
+ (scaler_with_2_planes_tests[index]. sf_plane1 != 1)) {
+ igt_info("Scalar2 does not support downscale operation");
+ continue;
+ }
igt_dynamic_f("pipe-%s", kmstest_pipe_name(pipe)) {
for_each_valid_output_on_pipe(&data.display, pipe, output) {
igt_info("Trying on %s\n",
--
2.43.0
More information about the igt-dev
mailing list