All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] kms_frontbuffer_tracking: Fix badstride test skipping with atomic
@ 2017-02-21 13:37 Ander Conselvan de Oliveira
  2017-02-21 14:43 ` Paulo Zanoni
  0 siblings, 1 reply; 3+ messages in thread
From: Ander Conselvan de Oliveira @ 2017-02-21 13:37 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ander Conselvan de Oliveira, Paulo Zanoni

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.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---
 tests/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 4f4848b..6d13e5d 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -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);
 }
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-21 14:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21 13:37 [PATCH i-g-t] kms_frontbuffer_tracking: Fix badstride test skipping with atomic Ander Conselvan de Oliveira
2017-02-21 14:43 ` Paulo Zanoni
2017-02-21 14:46   ` Ander Conselvan De Oliveira

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.