[PATCH i-g-t] tests/kms_fbt: Demo how rendercopy fails

Jouni Högander jouni.hogander at intel.com
Tue Jan 23 13:25:55 UTC 2024


Rendercopy seems to fail with size not divisible by 512. This patch
is adding new testcase which is demoing this failure. Also kms_fbt
is modified to pass by using only one rectangle with width == height == 512;

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 tests/intel/kms_frontbuffer_tracking.c | 6 +++---
 tests/intel/xe_intel_bb.c              | 6 ++++++
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 2a2690d18..a0a5dddbc 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -2036,8 +2036,8 @@ static struct rect pat1_get_rect(struct fb_region *fb, int r)
 	case 0:
 		rect.x = 0;
 		rect.y = 0;
-		rect.w = fb->w / 8;
-		rect.h = fb->h / 8;
+		rect.w = 512;
+		rect.h = 512;
 		rect.color = pick_color(fb->fb, COLOR_GREEN);
 		break;
 	case 1:
@@ -2425,7 +2425,7 @@ static void setup_crcs(void)
 		blue_crcs[f].initialized = false;
 
 	pattern1.frames_stack = true;
-	pattern1.n_rects = 4;
+	pattern1.n_rects = 1;
 	pattern1.get_rect = pat1_get_rect;
 	for (f = 0; f < FORMAT_COUNT; f++) {
 		pattern1.initialized[f] = false;
diff --git a/tests/intel/xe_intel_bb.c b/tests/intel/xe_intel_bb.c
index 161f766a0..22791000f 100644
--- a/tests/intel/xe_intel_bb.c
+++ b/tests/intel/xe_intel_bb.c
@@ -925,6 +925,9 @@ static void delta_check(struct buf_ops *bops)
 /**
  * SUBTEST: render
  * Description: check intel-bb render pipeline
+ *
+ * SUBTEST: demo-kms-fbt-failure
+ * Description: check intel-bb render pipeline
  */
 static int render(struct buf_ops *bops, uint32_t tiling,
 		  uint32_t width, uint32_t height)
@@ -1128,6 +1131,9 @@ igt_main_args("dpib", NULL, help_str, opt_handler, NULL)
 		}
 	}
 
+	igt_subtest("demo-kms-fbt-failure")
+		render(bops, I915_TILING_NONE, 556, 556);
+
 	igt_fixture {
 		buf_ops_destroy(bops);
 		drm_close_driver(xe);
-- 
2.34.1



More information about the Intel-gfx-trybot mailing list