[igt-dev] [PATCH i-g-t v2] tests/kms_ccs: Avoid skips when testing with lower resolution panels

Mika Kahola mika.kahola at intel.com
Tue Oct 1 11:13:22 UTC 2019


The subtest pipe-*-bad-aux-stride skips when testing with lower resolution
panels such as

Modeline "1024x768": 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa
Modeline "800x600": 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5
Modeline "800x600": 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5
Modeline "848x480": 60 33750 848 864 976 1088 480 486 494 517 0x40 0x5
Modeline "640x480": 60 25175 640 656 752 800 480 490 492 525 0x40 0xa

This is due to limitation on maximum sprite plane width, which is limited
to 2000. Let's downgrade the limit to 800 in order to test with panels
supporting 1024x768 resolution.

v2: Fix hardcoded value when checking for smallest stride (CI)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111335
Signed-off-by: Mika Kahola <mika.kahola at intel.com>
---
 tests/kms_ccs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 1ce66cde..ff8c9557 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -82,7 +82,7 @@ static const uint64_t ccs_modifiers[] = {
  * comment saying:
  * "Requested display configuration exceeds system watermark limitations"
  */
-#define MAX_SPRITE_PLANE_WIDTH 2000
+#define MAX_SPRITE_PLANE_WIDTH 800
 
 static void addfb_init(struct igt_fb *fb, struct drm_mode_fb_cmd2 *f)
 {
@@ -135,13 +135,13 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
 
 	if (fb_flags & FB_COMPRESSED) {
 		if (fb_flags & FB_MISALIGN_AUX_STRIDE) {
-			igt_skip_on_f(width <= 1024,
+			igt_skip_on_f(width <= 800,
 				      "FB already has the smallest possible stride\n");
 			f.pitches[1] -= 64;
 		}
 
 		if (fb_flags & FB_SMALL_AUX_STRIDE) {
-			igt_skip_on_f(width <= 1024,
+			igt_skip_on_f(width <= 800,
 				      "FB already has the smallest possible stride\n");
 			f.pitches[1] = ALIGN(f.pitches[1]/2, 128);
 		}
-- 
2.17.1



More information about the igt-dev mailing list