summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-23 12:55:04 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-06-23 14:44:18 -0300
commit7eb5f079491e5c078cf44d5ddb52824bb2c6bfb0 (patch)
treee2d57c01abe19eaf1d00560a3746c3c143221e4b /tests
parent7756e8844538050c1e4efde28147ca7e0753df27 (diff)
tests/kms_frontbuffer_tracking: rename set_screens_for_test
Rename it to prepare_subtest. This function used to be much smaller when I decided its name. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_frontbuffer_tracking.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index f57f78f7..72455c36 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -1476,8 +1476,8 @@ static void set_crtc_fbs(const struct test_mode *t)
scnd_mode_params.sprite.fb = &fbs.scnd_spr;
}
-static void set_screens_for_test(const struct test_mode *t,
- struct draw_pattern_info *pattern)
+static void prepare_subtest(const struct test_mode *t,
+ struct draw_pattern_info *pattern)
{
check_test_requirements(t);
@@ -1608,7 +1608,7 @@ static void draw_subtest(const struct test_mode *t)
igt_assert(false);
}
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
target = pick_target(t, params);
for (r = 0; r < pattern->n_rects; r++) {
@@ -1660,7 +1660,7 @@ static void multidraw_subtest(const struct test_mode *t)
igt_assert(false);
}
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
target = pick_target(t, params);
for (m = 0; m < IGT_DRAW_METHOD_COUNT; m++) {
@@ -1735,7 +1735,7 @@ static void flip_subtest(const struct test_mode *t)
igt_assert(false);
}
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
igt_create_fb(drm.fd, params->fb.fb->width, params->fb.fb->height,
DRM_FORMAT_XRGB8888, LOCAL_I915_FORMAT_MOD_X_TILED, &fb2);
@@ -1782,7 +1782,7 @@ static void move_subtest(const struct test_mode *t)
struct draw_pattern_info *pattern = &pattern3;
bool repeat = false;
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
/* Just paint the right color since we start at 0x0. */
draw_rect(pattern, pick_target(t, params), t->method, 0);
@@ -1845,7 +1845,7 @@ static void onoff_subtest(const struct test_mode *t)
struct modeset_params *params = pick_params(t);
struct draw_pattern_info *pattern = &pattern3;
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
/* Just paint the right color since we start at 0x0. */
draw_rect(pattern, pick_target(t, params), t->method, 0);
@@ -1924,7 +1924,7 @@ static void fullscreen_plane_subtest(const struct test_mode *t)
int assertions;
int rc;
- set_screens_for_test(t, pattern);
+ prepare_subtest(t, pattern);
rect = pattern->get_rect(&params->fb, 0);
igt_create_fb(drm.fd, rect.w, rect.h, DRM_FORMAT_XRGB8888,