Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F01E6E091 for ; Tue, 7 Sep 2021 17:56:15 +0000 (UTC) From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Tue, 7 Sep 2021 11:01:28 -0700 Message-Id: <20210907180130.43156-2-jose.souza@intel.com> In-Reply-To: <20210907180130.43156-1-jose.souza@intel.com> References: <20210907180130.43156-1-jose.souza@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v2 2/4] tests/kms_psr2_su: Set the damaged clip in page flips List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: Gwan-gyeong Mun , =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= List-ID: 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. Reviewed-by: Gwan-gyeong Mun Cc: Gwan-gyeong Mun Signed-off-by: José Roberto de Souza --- 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.33.0