All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pratik Vishwakarma <pratik.vishwakarma@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t] Adding tests using COMMIT_ATOMIC path
Date: Mon,  4 Apr 2016 10:07:22 +0530	[thread overview]
Message-ID: <1459744642-24737-1-git-send-email-pratik.vishwakarma@intel.com> (raw)

From: pvishwak <pratik.vishwakarma@intel.com>

v2: (Marius)
	Updated commit message
	https://patchwork.freedesktop.org/patch/76040/

Signed-off-by: Pratik Vishwakarma <pratik.vishwakarma@intel.com>
---
 tests/kms_rotation_crc.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index f94f8f1..4af41cf 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -111,6 +111,9 @@ static void commit_crtc(data_t *data, igt_output_t *output, igt_plane_t *plane)
 		commit = COMMIT_UNIVERSAL;
 	}
 
+	if (data->display.is_atomic)
+		commit = COMMIT_ATOMIC;
+
 	igt_display_commit2(display, commit);
 }
 
@@ -250,6 +253,9 @@ static void test_plane_rotation(data_t *data, enum igt_plane plane_type)
 		commit = COMMIT_UNIVERSAL;
 	}
 
+	if (data->display.is_atomic)
+		commit = COMMIT_ATOMIC;
+
 	for_each_connected_output(display, output) {
 		for_each_pipe(display, pipe) {
 			igt_plane_t *plane;
@@ -340,6 +346,9 @@ static void test_plane_rotation_ytiled_obj(data_t *data, enum igt_plane plane_ty
 		commit = COMMIT_UNIVERSAL;
 	}
 
+	if (data->display.is_atomic)
+		commit = COMMIT_ATOMIC;
+
 	mode = igt_output_get_mode(output);
 	w = mode->hdisplay;
 	h = mode->vdisplay;
@@ -404,6 +413,9 @@ static void test_plane_rotation_exhaust_fences(data_t *data, enum igt_plane plan
 		commit = COMMIT_UNIVERSAL;
 	}
 
+	if (data->display.is_atomic)
+		commit = COMMIT_ATOMIC;
+
 	mode = igt_output_get_mode(output);
 	w = mode->hdisplay;
 	h = mode->vdisplay;
@@ -579,6 +591,18 @@ igt_main
 		test_plane_rotation_exhaust_fences(&data, IGT_PLANE_PRIMARY);
 	}
 
+	igt_subtest_f("atomic-primary-rotation-180") {
+		igt_require(data.display.is_atomic);
+		data.rotation = IGT_ROTATION_180;
+		test_plane_rotation(&data, IGT_PLANE_PRIMARY);
+	}
+
+	igt_subtest_f("atomic-sprite-rotation-180") {
+		igt_require(data.display.is_atomic);
+		data.rotation = IGT_ROTATION_180;
+		test_plane_rotation(&data, IGT_PLANE_2);
+	}
+
 	igt_fixture {
 		igt_display_fini(&data.display);
 	}
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

             reply	other threads:[~2016-04-04  4:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04  4:37 Pratik Vishwakarma [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-03-07 10:25 [PATCH i-g-t] Adding tests using COMMIT_ATOMIC path Pratik Vishwakarma
2016-04-01 14:06 ` Marius Vlad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459744642-24737-1-git-send-email-pratik.vishwakarma@intel.com \
    --to=pratik.vishwakarma@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.