Skip to contentSkip to conversation

kms_frontbuffer_tracking: Fix badstride test skipping with atomic

PATCH In review Ander Conselvan de Oliveira 3 participants 3 messages Feb 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kms_frontbuffer_tracking: Fix badstride test skipping with atomic

In the new atomic reality, the page flip in the end of the badstride test succeeds. That flip is to an fb which has a stride too large to allow FBC to be enabled. Adjust the test expections accordingly.

---
 tests/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_frontbuffer_tracking.c +1 -1
index 4f4848b..6d13e5d 100644
@@ -3031,7 +3031,7 @@ static void badstride_subtest(const struct test_mode *t)
 	 */
 	rc = drmModePageFlip(drm.fd, params->crtc_id, wide_fb.fb_id, 0, NULL);
 	igt_assert(rc == -EINVAL || rc == 0);
-	do_assertions(0);
+	do_assertions(rc == 0 ? ASSERT_FBC_DISABLED : 0);
 
 	igt_remove_fb(drm.fd, &wide_fb);
 }
Signature · 6 lines
2.9.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Reviewed-by on v1 1/1
#1 lore raw

Em Ter, 2017-02-21 às 15:37 +0200, Ander Conselvan de Oliveira escreveu:

Quoted 3 lines

In the new atomic reality, the page flip in the end of the badstride test succeeds. That flip is to an fb which has a stride too large to allow FBC to be enabled. Adjust the test expections accordingly.

s/expections/expectations/

Quoted 22 lines

Cc: Maarten Lankhorst <[email protected]>
Cc: Paulo Zanoni <[email protected]>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.olivei [email protected]>
---
 tests/kms_frontbuffer_tracking.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_frontbuffer_tracking.c +1 -1
index 4f4848b..6d13e5d 100644
@@ -3031,7 +3031,7 @@ static void badstride_subtest(const struct
 test_mode *t)
  	 */
  	rc = drmModePageFlip(drm.fd, params->crtc_id, wide_fb.fb_id,
 0, NULL);
  	igt_assert(rc == -EINVAL || rc == 0);
-	do_assertions(0);
+	do_assertions(rc == 0 ? ASSERT_FBC_DISABLED : 0);
Quoted 3 lines


  igt_remove_fb(drm.fd, &wide_fb);
 }

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

#2 lore raw
Quoted 7 lines · Paulo Zanoni

Em Ter, 2017-02-21 às 15:37 +0200, Ander Conselvan de Oliveira escreveu:

Quoted 3 lines

In the new atomic reality, the page flip in the end of the badstride test succeeds. That flip is to an fb which has a stride too large to allow FBC to be enabled. Adjust the test expections accordingly.

s/expections/expectations/

Fixed and pushed.

Thanks,
Ander

Quoted 11 lines
Quoted 9 lines

Cc: Maarten Lankhorst <[email protected]>
Cc: Paulo Zanoni <[email protected]>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.olivei [email protected]>
---
 tests/kms_frontbuffer_tracking.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 16 lines
Quoted 13 lines
tests/kms_frontbuffer_tracking.c +1 -1
index 4f4848b..6d13e5d 100644
@@ -3031,7 +3031,7 @@ static void badstride_subtest(const struct
 test_mode *t)
  	 */
  	rc = drmModePageFlip(drm.fd, params->crtc_id, wide_fb.fb_id,
 0, NULL);
  	igt_assert(rc == -EINVAL || rc == 0);
-	do_assertions(0);
+	do_assertions(rc == 0 ? ASSERT_FBC_DISABLED : 0);
Quoted 3 lines


  igt_remove_fb(drm.fd, &wide_fb);
 }

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx