[PATCH i-g-t 2/2] tests/intel/kms_joiner: Add igt_get_dsc_sink_max_slice_count() constraint

Swati Sharma swati2.sharma at intel.com
Tue Dec 10 13:53:22 UTC 2024


For ultrajoiner min 4 pipes are required and each pipe requires
atleast 2 slices, which makes minimum of 8 slices for ultrajoiner.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3387
Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/intel/kms_joiner.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/intel/kms_joiner.c b/tests/intel/kms_joiner.c
index 9a353ee1b..418ff26a6 100644
--- a/tests/intel/kms_joiner.c
+++ b/tests/intel/kms_joiner.c
@@ -457,7 +457,8 @@ igt_main
 
 			if (ultrajoiner_found)
 				data.ultra_joiner_output[data.ultra_joiner_output_count++] = output;
-			else if (force_joiner_supported && is_dsc_supported_by_sink(data.drm_fd, output))
+			else if (force_joiner_supported && is_dsc_supported_by_sink(data.drm_fd, output) &&
+				 igt_get_dsc_sink_max_slice_count(data.drm_fd, output->name) >= 8)
 				data.non_ultra_joiner_output[data.non_ultra_joiner_output_count++] = output;
 
 			if (bigjoiner_found)
-- 
2.25.1



More information about the igt-dev mailing list