Commit 2639795f authored by Marek Olšák's avatar Marek Olšák

glean/texCombine: test fewer combinations

It takes 10 minutes for llvmpipe to finish this test. With this patch,
it takes 20 seconds.

Before:

Tested 104 GL_REPLACE combinations
Tested 7540 GL_ADD combinations
Tested 7540 GL_ADD_SIGNED_EXT combinations
Tested 7540 GL_MODULATE combinations
Tested 5957 GL_INTERPOLATE_EXT combinations
Tested 7540 GL_DOT3_RGB_EXT combinations
Tested 7540 GL_DOT3_RGBA_EXT combinations
Tested 47662 GL_MODULATE_ADD_ATI combinations
Tested 47662 GL_MODULATE_SIGNED_ADD_ATI combinations
Tested 47662 GL_MODULATE_SUBTRACT_ATI combinations
Tested 218 multitexture combinations
Tested 8 crossbar combinations

After:

Tested 17 GL_REPLACE combinations
Tested 1237 GL_ADD combinations
Tested 1237 GL_ADD_SIGNED_EXT combinations
Tested 1237 GL_MODULATE combinations
Tested 978 GL_INTERPOLATE_EXT combinations
Tested 1237 GL_DOT3_RGB_EXT combinations
Tested 1237 GL_DOT3_RGBA_EXT combinations
Tested 7825 GL_MODULATE_ADD_ATI combinations
Tested 7825 GL_MODULATE_SIGNED_ADD_ATI combinations
Tested 7825 GL_MODULATE_SUBTRACT_ATI combinations
Tested 35 multitexture combinations
Tested 8 crossbar combinations
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
Tested-by: Andreas Boll's avatarAndreas Boll <andreas.boll.dev@gmail.com>

before with r600g:

real    0m24.506s
user    0m22.393s
sys     0m1.812s

after with r600g

real    0m0.747s
user    0m0.616s
sys     0m0.100s

before with llvmpipe

real    4m28.217s
user    4m27.061s
sys     0m1.020s

after with llvmpipe

real    0m7.358s
user    0m7.224s
sys     0m0.112s
parent 22caf41e
......@@ -1609,7 +1609,7 @@ TexCombineTest::runOne(BasicResult& r, Window& w) {
// If quick mode, run fewer tests
if (env->options.quick)
testStride = 11; // a prime number
testStride = 67; // a prime number
else
testStride = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment