summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-01-09 18:21:45 -0500
committerMarek Olšák <marek.olsak@amd.com>2020-02-10 22:20:22 -0500
commitc75fbf652ce4831988adb9a59903f94533192a80 (patch)
treeec6d6af8eb8b9ecce819cc79388965f7997c06b1
parent1291df3ce59d750669590a6ebc2c9b9ed8330ae3 (diff)
draw-prim-rate: reorder test execution order
for easy copying of the results that we are interested in into a spreadsheet
-rw-r--r--tests/perf/draw-prim-rate.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/perf/draw-prim-rate.c b/tests/perf/draw-prim-rate.c
index 8749e49d7..6407c26b2 100644
--- a/tests/perf/draw-prim-rate.c
+++ b/tests/perf/draw-prim-rate.c
@@ -635,8 +635,18 @@ piglit_display(void)
}
printf("\n");
- for (int draw_method = 0; draw_method < NUM_DRAW_METHODS; draw_method++) {
- for (int cull_method = 0; cull_method < NUM_CULL_METHODS; cull_method++)
+ for (int cull_method = 0; cull_method < NUM_CULL_METHODS; cull_method++)
+ run(INDEXED_TRIANGLES, cull_method, num_quads_per_dim, num_prims, ARRAY_SIZE(num_prims));
+
+ /* glDrawArrays: Test NONE and BACK_FACE_CULLING first. */
+ for (int draw_method = TRIANGLES; draw_method < NUM_DRAW_METHODS; draw_method++) {
+ for (int cull_method = 0; cull_method < VIEW_CULLING; cull_method++)
+ run(draw_method, cull_method, num_quads_per_dim, num_prims, ARRAY_SIZE(num_prims));
+ }
+
+ /* glDrawArrays: Test the rest. */
+ for (int draw_method = TRIANGLES; draw_method < NUM_DRAW_METHODS; draw_method++) {
+ for (int cull_method = VIEW_CULLING; cull_method < NUM_CULL_METHODS; cull_method++)
run(draw_method, cull_method, num_quads_per_dim, num_prims, ARRAY_SIZE(num_prims));
}