All of lore.kernel.org
 help / color / mirror / Atom feed
From: "José Roberto de Souza" <jose.souza@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: "Gwan-gyeong Mun" <gwan-gyeong.mun@intel.com>,
	"José Roberto de Souza" <jose.souza@intel.com>
Subject: [igt-dev] [PATCH i-g-t 2/4] tests/kms_psr2_su: Set the damaged clip in page flips
Date: Tue, 17 Aug 2021 16:21:52 -0700	[thread overview]
Message-ID: <20210817232154.152035-2-jose.souza@intel.com> (raw)
In-Reply-To: <20210817232154.152035-1-jose.souza@intel.com>

Without this i915 will not know what was updated in the screen and
update the whole plane causing mismatch between the read SU blocks and
the expected value when PSR2 selective fetch is enabled.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
---
 tests/kms_psr2_su.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/kms_psr2_su.c b/tests/kms_psr2_su.c
index a232b3bb4..318deefdf 100644
--- a/tests/kms_psr2_su.c
+++ b/tests/kms_psr2_su.c
@@ -149,11 +149,17 @@ static bool update_screen_and_test(data_t *data)
 
 	switch (data->op) {
 	case PAGE_FLIP: {
+		struct drm_mode_rect clip;
 		igt_plane_t *primary;
 
+		clip.x1 = clip.y1 = 0;
+		clip.x2 = clip.y2 = SQUARE_SIZE;
+
 		primary = igt_output_get_plane_type(data->output,
 						    DRM_PLANE_TYPE_PRIMARY);
 
+		igt_plane_replace_prop_blob(primary, IGT_PLANE_FB_DAMAGE_CLIPS,
+					    &clip, sizeof(clip));
 		igt_plane_set_fb(primary, &data->fb[data->screen_changes & 1]);
 		igt_display_commit2(&data->display, COMMIT_ATOMIC);
 		break;
-- 
2.32.0

  reply	other threads:[~2021-08-17 23:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-17 23:21 [igt-dev] [PATCH i-g-t 1/4] tests/kms_cursor_legacy: Handle cursor movements as slow patch for display 9+ José Roberto de Souza
2021-08-17 23:21 ` José Roberto de Souza [this message]
2021-08-17 23:21 ` [igt-dev] [PATCH i-g-t 3/4] test/kms_frontbuffer_tracking: Fix multidraw test José Roberto de Souza
2021-08-17 23:21 ` [igt-dev] [PATCH i-g-t 4/4] tests/kms_psr: Add drmModeDirtyFB() calls to handle frontbuffer rendering tests José Roberto de Souza
2021-08-18  0:00 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/4] tests/kms_cursor_legacy: Handle cursor movements as slow patch for display 9+ Patchwork
2021-08-18  0:14   ` Souza, Jose
2021-08-18  0:35     ` Vudum, Lakshminarayana
2021-08-18  9:21 ` [igt-dev] [PATCH i-g-t 1/4] " Petri Latvala
2021-08-18 21:49   ` Souza, Jose
2021-08-18 11:24 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/4] " Patchwork

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=20210817232154.152035-2-jose.souza@intel.com \
    --to=jose.souza@intel.com \
    --cc=gwan-gyeong.mun@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 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.