[PATCH i-g-t] kms_frontbuffer_tacking: Add spinner into basic subtest
Jouni Högander
jouni.hogander at intel.com
Fri Mar 10 11:55:28 UTC 2023
Add spinner into kms_frontbuffer_tracking basic testcase
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
tests/i915/kms_frontbuffer_tracking.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 5b47999e..f88517fc 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -3151,6 +3151,8 @@ static void basic_subtest(const struct test_mode *t)
struct igt_fb *fb1, fb2;
int r;
int assertions = DONT_ASSERT_FEATURE_STATUS;
+ igt_spin_t *spin;
+ uint64_t ahnd = 0;
prepare_subtest(t, pattern);
@@ -3175,10 +3177,17 @@ static void basic_subtest(const struct test_mode *t)
r = 0;
}
+ spin = igt_spin_new(drm.fd,
+ .ahnd = ahnd,
+ .dependency = params->primary.fb->gem_handle,
+ .dependency_size = params->primary.fb->size);
+
draw_rect(pattern, ¶ms->primary, method, r);
update_wanted_crc(t, &pattern->crcs[t->format][r]);
do_assertions(assertions);
+ igt_spin_free(drm.fd, spin);
+
r++;
}
--
2.34.1
More information about the Intel-gfx-trybot
mailing list