[Piglit] [PATCH 4/4] drawoverhead: test 8 UBOs instead of 4
Marek Olšák
maraeo at gmail.com
Tue Jun 20 20:02:41 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
tests/perf/drawoverhead.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/perf/drawoverhead.c b/tests/perf/drawoverhead.c
index fa6e1bb..429375f 100644
--- a/tests/perf/drawoverhead.c
+++ b/tests/perf/drawoverhead.c
@@ -713,21 +713,21 @@ perf_draw_variant(const char *call, bool is_indexed)
num_vbos = 1;
num_ubos = 0;
num_textures = 16;
setup_shaders_and_resources(num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos);
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos, num_images,
num_imgbos, "no state", draw, base_rate);
/* Test state changes. */
- num_ubos = 4;
+ num_ubos = 8;
num_textures = 8;
for (num_vbos = 1; num_vbos <= 16; num_vbos *= 16) {
setup_shaders_and_resources(num_vbos, num_ubos, num_textures,
num_tbos, num_images, num_imgbos);
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos,
"no state", draw, base_rate);
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos,
@@ -782,21 +782,21 @@ perf_draw_variant(const char *call, bool is_indexed)
num_tbos = 0;
setup_shaders_and_resources(num_vbos, num_ubos, num_textures,
num_tbos, num_images, num_imgbos);
}
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos,
"1 UBO", draw_one_ubo_change, base_rate);
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos,
- "4 UBOs", draw_many_ubo_change, base_rate);
+ "8 UBOs", draw_many_ubo_change, base_rate);
glUseProgram(prog[0]);
uniform_loc = glGetUniformLocation(prog[0], "u");
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
num_images, num_imgbos,
"few uniforms / 1", draw_uniform_change, base_rate);
glUseProgram(prog[1]);
uniform_loc = glGetUniformLocation(prog[1], "u");
perf_run(call, num_vbos, num_ubos, num_textures, num_tbos,
--
2.7.4
More information about the Piglit
mailing list