public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Matt Roper <matthew.d.roper@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 1/3] lib/kms: Let display commits wait for keypress while debugging
Date: Mon, 19 Jan 2015 20:05:11 -0800	[thread overview]
Message-ID: <1421726713-32115-2-git-send-email-matthew.d.roper@intel.com> (raw)
In-Reply-To: <1421726713-32115-1-git-send-email-matthew.d.roper@intel.com>

Add a call to igt_debug_wait_for_keypress() immediately before we commit
new hardware state to help simplify display debugging.

To use this, just set the environment variable:

        IGT_DEBUG_INTERACTIVE=commit

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
---
 lib/igt_kms.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index d0c3690..bb72c68 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -1551,6 +1551,7 @@ static int do_display_commit(igt_display_t *display,
 
 	LOG_INDENT(display, "commit");
 
+	igt_debug_wait_for_keypress("commit");
 	igt_display_refresh(display);
 
 	for (i = 0; i < display->n_outputs; i++) {
-- 
1.8.5.1

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

  reply	other threads:[~2015-01-20  4:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20  4:05 [PATCH i-g-t 0/3] IGT support for nuclear pageflip Matt Roper
2015-01-20  4:05 ` Matt Roper [this message]
2015-01-20  4:05 ` [PATCH i-g-t 2/3] lib/kms: Add nuclear pageflip commit style Matt Roper
2015-03-17 11:53   ` Ander Conselvan De Oliveira
2015-01-20  4:05 ` [PATCH i-g-t 3/3] tests: Introduce kms_nuclear Matt Roper
2015-01-20 18:17   ` Thomas Wood
2015-01-26 17:14     ` [PATCH i-g-t 3/3] tests: Introduce kms_nuclear (v2) Matt Roper

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=1421726713-32115-2-git-send-email-matthew.d.roper@intel.com \
    --to=matthew.d.roper@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox