[igt-dev] [v4 04/10] tests/i915/kms_dsc: update if condition

Swati Sharma swati2.sharma at intel.com
Fri Jul 28 07:49:07 UTC 2023


Check is_dsc_output_format_supported() iff test flag is set to
OUTPUT_FORMAT.

Signed-off-by: Swati Sharma <swati2.sharma at intel.com>
---
 tests/i915/kms_dsc.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/i915/kms_dsc.c b/tests/i915/kms_dsc.c
index 7b9bae91a..266918f74 100644
--- a/tests/i915/kms_dsc.c
+++ b/tests/i915/kms_dsc.c
@@ -238,8 +238,9 @@ static void test_dsc(data_t *data, uint32_t test_type, int bpc,
 		if (!is_dsc_supported_by_sink(data->drm_fd, data->output))
 			continue;
 
-		if (!is_dsc_output_format_supported(data->drm_fd, data->disp_ver,
-						    data->output, data->output_format))
+		if ((test_type & TEST_DSC_OUTPUT_FORMAT) &&
+		    (!is_dsc_output_format_supported(data->drm_fd, data->disp_ver,
+						     data->output, data->output_format)))
 			continue;
 
 		if (!check_gen11_dp_constraint(data->drm_fd, data->output, data->pipe))
-- 
2.25.1



More information about the igt-dev mailing list