[4/4] drawoverhead: test 8 UBOs instead of 4

Submitted by Marek Olšák on June 20, 2017, 8:02 p.m.

Details

Message ID 1497988961-4537-4-git-send-email-maraeo@gmail.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Marek Olšák June 20, 2017, 8:02 p.m.
From: Marek Olšák <marek.olsak@amd.com>

---
 tests/perf/drawoverhead.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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,