summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-07-13 16:56:06 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-07-14 13:05:40 -0300
commit91f097aefa29ff0d6b0b97f204f2bd1e3e5f0c3d (patch)
treeac1dcb50f14b34672931664f08a91439c2daa402
parent04d1311fc3d2127d609b5c5e670bf9887652cb17 (diff)
kms_frontbuffer_tracking: simplify subtest enumeration
Just a small bikeshed. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r--tests/kms_frontbuffer_tracking.c57
1 files changed, 21 insertions, 36 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 81834fb6..6e77c41a 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -2592,11 +2592,9 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.plane != PLANE_PRI)
- continue;
- if (t.screen == SCREEN_OFFSCREEN)
- continue;
- if (!opt.show_hidden && t.method != IGT_DRAW_BLT)
+ if (t.plane != PLANE_PRI ||
+ t.screen == SCREEN_OFFSCREEN ||
+ (!opt.show_hidden && t.method != IGT_DRAW_BLT))
continue;
igt_subtest_f("%s-%s-%s-%s-flip-%s",
@@ -2625,11 +2623,9 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.screen == SCREEN_OFFSCREEN)
- continue;
- if (t.method != IGT_DRAW_BLT)
- continue;
- if (t.plane == PLANE_PRI)
+ if (t.screen == SCREEN_OFFSCREEN ||
+ t.method != IGT_DRAW_BLT ||
+ t.plane == PLANE_PRI)
continue;
igt_subtest_f("%s-%s-%s-%s-%s-move",
@@ -2650,11 +2646,9 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.screen == SCREEN_OFFSCREEN)
- continue;
- if (t.method != IGT_DRAW_BLT)
- continue;
- if (t.plane != PLANE_SPR)
+ if (t.screen == SCREEN_OFFSCREEN ||
+ t.method != IGT_DRAW_BLT ||
+ t.plane != PLANE_SPR)
continue;
igt_subtest_f("%s-%s-%s-%s-%s-fullscreen",
@@ -2667,9 +2661,8 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.screen != SCREEN_PRIM)
- continue;
- if (!opt.show_hidden && t.fbs != FBS_INDIVIDUAL)
+ if (t.screen != SCREEN_PRIM ||
+ (!opt.show_hidden && t.fbs != FBS_INDIVIDUAL))
continue;
igt_subtest_f("%s-%s-%s-%s-multidraw-%s",
@@ -2682,15 +2675,11 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.pipes != PIPE_SINGLE)
- continue;
- if (t.screen != SCREEN_PRIM)
- continue;
- if (t.plane != PLANE_PRI)
- continue;
- if (t.fbs != FBS_INDIVIDUAL)
- continue;
- if (t.method != IGT_DRAW_MMAP_GTT)
+ if (t.pipes != PIPE_SINGLE ||
+ t.screen != SCREEN_PRIM ||
+ t.plane != PLANE_PRI ||
+ t.fbs != FBS_INDIVIDUAL ||
+ t.method != IGT_DRAW_MMAP_GTT)
continue;
igt_subtest_f("%s-farfromfence", feature_str(t.feature))
@@ -2698,15 +2687,11 @@ int main(int argc, char *argv[])
TEST_MODE_ITER_END
TEST_MODE_ITER_BEGIN(t)
- if (t.pipes != PIPE_SINGLE)
- continue;
- if (t.screen != SCREEN_PRIM)
- continue;
- if (t.plane != PLANE_PRI)
- continue;
- if (t.fbs != FBS_INDIVIDUAL)
- continue;
- if (t.method != IGT_DRAW_MMAP_CPU)
+ if (t.pipes != PIPE_SINGLE ||
+ t.screen != SCREEN_PRIM ||
+ t.plane != PLANE_PRI ||
+ t.fbs != FBS_INDIVIDUAL ||
+ t.method != IGT_DRAW_MMAP_CPU)
continue;
igt_subtest_f("%s-modesetfrombusy", feature_str(t.feature))