[2/8] gen_builtin_uniform_tests.py: Declare how big of a window we actually need.

Submitted by Eric Anholt on Aug. 29, 2014, 9:41 p.m.

Details

Message ID 1409348479-15398-2-git-send-email-eric@anholt.net
State New
Headers show

Not browsing as part of any series.

Commit Message

Eric Anholt Aug. 29, 2014, 9:41 p.m.
compare-perf of fs-op-mult-vec4-vec4.shader_test for VC4 simulation
shows -95.8062% +/- 1.57425% effect on runtime (n=5).  No difference
proven on i965 with piglit-run.py -t
glsl-1.10/execution/built-in-functions/fs-op (n=14).
---
 generated_tests/gen_builtin_uniform_tests.py | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py
index 7edd5cc..5f87fbe 100644
--- a/generated_tests/gen_builtin_uniform_tests.py
+++ b/generated_tests/gen_builtin_uniform_tests.py
@@ -484,6 +484,8 @@  class ShaderTest(object):
         shader_test = '[require]\n'
         shader_test += 'GLSL >= {0:1.2f}\n'.format(
             float(self.glsl_version()) / 100)
+        shader_test += 'SIZE {0} 1'.format(
+            min(len(self._test_vectors), 250))
         shader_test += self.make_additional_requirements()
         shader_test += '\n'
         shader_test += '[vertex shader]\n'