Thread (7 messages) 7 messages, 2 authors, 2021-09-02

[igt-dev] [PATCH i-g-t v2 2/4] tests/kms_psr2_su: Set the damaged clip in page flips

From: José Roberto de Souza <hidden>
Date: 2021-08-18 22:19:31
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
Signed-off-by: José Roberto de Souza <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help