public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t] tests/kms_cursor_crc: Add Gaurd for MSO eDP for Pipe C and D
@ 2022-12-30  6:46 bhadanednyaneshwar
  2022-12-30 10:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: bhadanednyaneshwar @ 2022-12-30  6:46 UTC (permalink / raw)
  To: igt-dev; +Cc: suresh.kumar.kurmi, dnyaneshwar.bhadane, chaitanya.kumar.borah

MSO eDP is not supported on pipe C and D. Added a test condition
to prevent tests from execution on pipe C and D.This condition was
missed for cursor-size-change,cursor-alpha-opaque and
cursor-alpha-transparent testcases.

Inside require_cursor_size() checks first for eligiblity to igt commit
using test buffer.For MSO eDP, It is fail to commit for pipe C/pipe D
and require_cursor_size() return non zero value. So it will skip
the dynamic testcase for pipe C and D.

Signed-off-by: bhadanednyaneshwar <dnyaneshwar.bhadane@intel.com>
---
 tests/kms_cursor_crc.c | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/tests/kms_cursor_crc.c b/tests/kms_cursor_crc.c
index 17f294d6..d8fb9c0d 100644
--- a/tests/kms_cursor_crc.c
+++ b/tests/kms_cursor_crc.c
@@ -786,7 +786,12 @@ static void run_tests_on_pipe(data_t *data)
 	igt_subtest_with_dynamic("cursor-size-change") {
 		for_each_pipe(&data->display, pipe) {
 			data->pipe = pipe;
-
+			create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);
+			if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {
+				igt_debug("Cursor size %dx%d not supported by driver\n",
+					  data->cursor_max_w, data->cursor_max_h);
+				continue;
+			}
 			igt_dynamic_f("pipe-%s-%s",
 				      kmstest_pipe_name(pipe),
 				      data->output->name)
@@ -800,7 +805,12 @@ static void run_tests_on_pipe(data_t *data)
 	igt_subtest_with_dynamic("cursor-alpha-opaque") {
 		for_each_pipe(&data->display, pipe) {
 			data->pipe = pipe;
-
+			create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);
+			if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {
+				igt_debug("Cursor size %dx%d not supported by driver\n",
+					  data->cursor_max_w, data->cursor_max_h);
+				continue;
+			}
 			igt_dynamic_f("pipe-%s-%s",
 				      kmstest_pipe_name(pipe),
 				      data->output->name)
@@ -814,7 +824,12 @@ static void run_tests_on_pipe(data_t *data)
 	igt_subtest_with_dynamic("cursor-alpha-transparent") {
 		for_each_pipe(&data->display, pipe) {
 			data->pipe = pipe;
-
+			create_cursor_fb(data, data->cursor_max_w, data->cursor_max_h);
+			if (require_cursor_size(data, data->cursor_max_w, data->cursor_max_h)) {
+				igt_debug("Cursor size %dx%d not supported by driver\n",
+					  data->cursor_max_w, data->cursor_max_h);
+				continue;
+			}
 			igt_dynamic_f("pipe-%s-%s",
 				      kmstest_pipe_name(pipe),
 				      data->output->name)
-- 
2.35.1

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

end of thread, other threads:[~2023-01-09 15:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30  6:46 [igt-dev] [i-g-t] tests/kms_cursor_crc: Add Gaurd for MSO eDP for Pipe C and D bhadanednyaneshwar
2022-12-30 10:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-12-30 11:49 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-12-30 19:16 ` [igt-dev] [i-g-t] " Swati Sharma
2023-01-03  5:59   ` Bhadane, Dnyaneshwar
2023-01-03 14:50 ` Kamil Konieczny
2023-01-05  6:26   ` Bhadane, Dnyaneshwar
2023-01-03 17:41 ` Kamil Konieczny
2023-01-05  6:22   ` Bhadane, Dnyaneshwar
2023-01-03 18:31 ` Juha-Pekka Heikkila
2023-01-05  8:07   ` Bhadane, Dnyaneshwar
2023-01-06 12:28   ` Bhadane, Dnyaneshwar
2023-01-09  6:49 ` [igt-dev] [i-g-t v2] tests/kms_cursor_crc: Skip for invalid pipe connector connection Dnyaneshwar Bhadane
2023-01-09 15:19   ` Juha-Pekka Heikkila
2023-01-09  7:18 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_cursor_crc: Add Gaurd for MSO eDP for Pipe C and D (rev2) Patchwork
2023-01-09  7:52 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_cursor_crc: Add Gaurd for MSO eDP for Pipe C and D (rev3) Patchwork
2023-01-09  9:32 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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