diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-07-13 17:08:17 -0300 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-07-14 13:06:08 -0300 |
commit | 1c389f69f0b188edd47eca1901f62ba36a59f37f (patch) | |
tree | 4ce445fe67c786b35503f4e568da2fe1cc033e11 | |
parent | 91f097aefa29ff0d6b0b97f204f2bd1e3e5f0c3d (diff) |
kms_frontbuffer_tracking: allow passing a NULL pattern
So we don't need to initialize CRCs we won't use. This makes the
modesetfrombusy and badstride tests a little faster.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 6e77c41a..e2299c96 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -1554,7 +1554,10 @@ static void prepare_subtest(const struct test_mode *t, fill_fb_region(&offscreen_fb, 0x80); unset_all_crtcs(); - init_crcs(pattern); + + if (pattern) + init_crcs(pattern); + enable_features_for_test(t); enable_prim_screen_and_wait(t); @@ -2224,11 +2227,10 @@ static void fullscreen_plane_subtest(const struct test_mode *t) */ static void modesetfrombusy_subtest(const struct test_mode *t) { - struct draw_pattern_info *pattern = &pattern1; struct modeset_params *params = pick_params(t); struct igt_fb fb2; - prepare_subtest(t, pattern); + prepare_subtest(t, NULL); igt_create_fb(drm.fd, params->fb.fb->width, params->fb.fb->height, DRM_FORMAT_XRGB8888, LOCAL_I915_FORMAT_MOD_X_TILED, &fb2); @@ -2362,7 +2364,7 @@ static void badstride_subtest(const struct test_mode *t) try_invalid_strides(); - prepare_subtest(t, &pattern4); + prepare_subtest(t, NULL); igt_create_fb(drm.fd, params->fb.fb->width + 4096, params->fb.fb->height, DRM_FORMAT_XRGB8888, |