From: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
To: arkadiusz.hiler@intel.com, igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 8/9] tests/kms_atomic_transition: Set modeset for enable pipes only
Date: Thu, 2 Jul 2020 10:23:06 +0530 [thread overview]
Message-ID: <20200702045307.19202-9-mohammed.khajapasha@intel.com> (raw)
In-Reply-To: <20200702045307.19202-1-mohammed.khajapasha@intel.com>
Set the modeset for enable pipes only by using max iteration
from enable pipe count.
Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha@intel.com>
---
tests/kms_atomic_transition.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 754a4969..8c1c1d93 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -737,8 +737,8 @@ static void collect_crcs_mask(igt_pipe_crc_t **pipe_crcs, unsigned mask, igt_crc
static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblocking, bool fencing)
{
struct igt_fb fbs[2];
- int i, j;
- unsigned iter_max = 1 << display->n_pipes;
+ int i, j = 0;
+ unsigned iter_max;
igt_pipe_crc_t *pipe_crcs[IGT_MAX_PIPES] = { 0 };
igt_output_t *output;
unsigned width = 0, height = 0;
@@ -762,6 +762,9 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
igt_plane_t *plane = igt_pipe_get_plane_type(pipe, DRM_PLANE_TYPE_PRIMARY);
drmModeModeInfo *mode = NULL;
+ /* count enable pipes to set max iteration */
+ j += 1;
+
if (is_i915_device(display->drm_fd))
pipe_crcs[i] = igt_pipe_crc_new(display->drm_fd, i, INTEL_PIPE_CRC_SOURCE_AUTO);
@@ -785,6 +788,8 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock
igt_plane_set_fb(plane, NULL);
}
+ iter_max = 1 << j;
+
igt_display_commit2(display, COMMIT_ATOMIC);
for (i = 0; i < iter_max; i++) {
--
2.24.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-07-02 4:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 4:52 [igt-dev] [PATCH i-g-t 0/9] lib/igt_kms: Add support for display with Mohammed Khajapasha
2020-07-02 4:52 ` [igt-dev] [PATCH i-g-t 1/9] lib/igt_kms: Add support for display with non-contiguous pipes Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 2/9] lib/igt_kms: Add igt_require_pipe() function Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 3/9] tests/kms_cursor_legacy: Read crtc id for enable pipes Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 4/9] tests/kms_lease: Get pipe from crtc " Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 5/9] tests/kms_lease: Read crtc id for a valid pipe Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 6/9] lib/kms: Skip igt test cases for disabled display pipes Mohammed Khajapasha
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 7/9] tests/kms: Skip kms test cases for disabled pipes Mohammed Khajapasha
2020-07-02 4:53 ` Mohammed Khajapasha [this message]
2020-07-02 4:53 ` [igt-dev] [PATCH i-g-t 9/9] i915/gem_eio: Set modeset for enable pipes Mohammed Khajapasha
2020-07-02 7:26 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_kms: Add support for display with (rev4) Patchwork
2020-07-02 9:35 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-07-03 11:36 ` Arkadiusz Hiler
-- strict thread matches above, loose matches on Subject: below --
2020-07-01 19:08 [igt-dev] [PATCH i-g-t 0/9] lib/igt_kms: Add support for display with Mohammed Khajapasha
2020-07-01 19:08 ` [igt-dev] [PATCH i-g-t 8/9] tests/kms_atomic_transition: Set modeset for enable pipes only Mohammed Khajapasha
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=20200702045307.19202-9-mohammed.khajapasha@intel.com \
--to=mohammed.khajapasha@intel.com \
--cc=arkadiusz.hiler@intel.com \
--cc=igt-dev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox