All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Foss <robert.foss@collabora.com>
To: intel-gfx@lists.freedesktop.org,
	Tomeu Vizoso <tomeu.vizoso@collabora.com>
Subject: [PATCH i-g-t v1] igt_kms: Allow pipes with no cursor plane
Date: Thu,  6 Apr 2017 15:18:37 -0400	[thread overview]
Message-ID: <20170406191837.20921-1-robert.foss@collabora.com> (raw)

A cursor plane may not always be available. Since there
already exist variables that signal the existance or
non-existance of cursor planes like pipe->plane_cursor and
display->has_cursor_plane, allow the pipes that have no
cursor plane.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
 lib/igt_kms.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 5811414f..d49e152e 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1677,7 +1677,15 @@ void igt_display_init(igt_display_t *display, int drm_fd)
 		 * There should be no gaps. If there is, something happened
 		 * which we can't handle (e.g. all planes are cursors).
 		 */
-		igt_assert_eq(p, last_plane);
+                if (pipe->plane_cursor != -1) {
+                        /* Cursor plane found. */
+                        igt_assert_eq(p, last_plane);
+                } else {
+                        /* No cursor plane found. */
+                        igt_assert_lte(last_plane, p);
+                }
+
+
 
 		pipe->n_planes = n_planes;
 
-- 
2.11.0.453.g787f75f05

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

                 reply	other threads:[~2017-04-06 19:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20170406191837.20921-1-robert.foss@collabora.com \
    --to=robert.foss@collabora.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=tomeu.vizoso@collabora.com \
    /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.