Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/kms_dsc_helper.c: Fix helper to check dsc with output_format
@ 2023-08-07  9:15 Ankit Nautiyal
  2023-08-07  9:47 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Ankit Nautiyal @ 2023-08-07  9:15 UTC (permalink / raw)
  To: igt-dev

Fix the condition that checks whether DSC is supported with given
output format in is_dsc_output_format_supported.

Fixes: c365922f01c12 (tests/i915/kms_dsc: Enable validation for VDSC output formats)
Cc: Swati Sharma <swati2.sharma@intel.com>
Cc: Jouni H_gander <jouni.hogander@intel.com>
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 tests/i915/kms_dsc_helper.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/tests/i915/kms_dsc_helper.c b/tests/i915/kms_dsc_helper.c
index ae59edb6bec9..160364cd28bf 100644
--- a/tests/i915/kms_dsc_helper.c
+++ b/tests/i915/kms_dsc_helper.c
@@ -133,13 +133,12 @@ static bool is_dsc_output_format_supported_by_platform(int disp_ver, enum dsc_ou
 bool is_dsc_output_format_supported(int drmfd, int disp_ver, igt_output_t *output,
 				    enum dsc_output_format output_format)
 {
-	if (!(igt_is_dsc_output_format_supported_by_sink(drmfd, output->name, output_format)) &&
-	     (is_dsc_output_format_supported_by_platform(disp_ver, output_format))) {
-		    igt_debug("DSC %s output format not supported on connector %s\n",
-			       kmstest_dsc_output_format_str(output_format),
-			       output->name);
-			return false;
-		}
+	if (is_dsc_output_format_supported_by_platform(disp_ver, output_format) &&
+	    igt_is_dsc_output_format_supported_by_sink(drmfd, output->name, output_format))
+		return true;
 
-	return true;
+	igt_debug("DSC %s output format not supported on connector %s\n",
+		  kmstest_dsc_output_format_str(output_format), output->name);
+
+	return false;
 }
-- 
2.40.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-08-08  4:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07  9:15 [igt-dev] [PATCH i-g-t] tests/i915/kms_dsc_helper.c: Fix helper to check dsc with output_format Ankit Nautiyal
2023-08-07  9:47 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2023-08-07 10:21 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-07 10:23 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-08-07 10:42 ` [igt-dev] [PATCH i-g-t] " Hogander, Jouni
2023-08-07 13:55   ` Sharma, Swati2
2023-08-08  4:54     ` Nautiyal, Ankit K
2023-08-07 13:42 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox