summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-07-13run.py: Stop counting ignored linesDylan Baker1-3/+1
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13run.py: Replace process_directories with a generatorDylan Baker1-13/+12
Previously process_directories was a function that operated on a toplevel directory recursively. This replacment uses os.walk() and is a generator, which reduces memory consumption and is lazy. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13split-to-files.py: cleanup pylint warningsDylan Baker1-17/+20
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13run.py: Cleanup pylint warningsDylan Baker1-16/+16
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13report.py: Fix PEP8 issuesDylan Baker1-11/+17
Changes: - uses rawstrings (r'foo') for regex strings - compare to None using 'is' and 'is not' - break long lines - fix hanging indents Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13split-to-files.py: Replace getopt with argparseDylan Baker1-30/+8
v2 (Ken): Tweak --help descriptions slightly. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13report.py: use argparse instead of getoptDylan Baker1-38/+13
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13run.py: use argparse instead of getoptDylan Baker1-27/+10
argparse.ArgumentParser() is a modern way of parser argument in python, it's object oriented, clean, and provides lots of nice features. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13python: 2 blanks between toplevel functions and classesDylan Baker3-0/+19
This is PEP8 sytle Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13python: cleanup importsDylan Baker3-7/+6
Split imports one module per line and remove any unused imports. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13python: Replace tabs with spacesDylan Baker3-3/+3
Python3 doesn't allow mixed tabs and spaces. Its surprising that this code doesn't raise a runtime exception as is Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13shaders/yofrankie/120.shader_test: fix compiliationDylan Baker1-397/+0
2014-07-13shaders/sauerbraten/2.shader_test: fix compilationDylan Baker1-3/+0
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-13shaders/sauerbraten/11.shader_test: fix compilationDylan Baker1-7/+0
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-13shaders/nexuiz/115.shader_test: Fix compilationDylan Baker1-5/+0
2014-07-13shaders/anholt/18.shader_test: fix shader to compileDylan Baker1-4/+0
2014-07-13shaders/0ad/12.shader_test: fix shader to compileDylan Baker1-14/+0
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-13Update Warsow shaders to 1.5.0.Kenneth Graunke91-8676/+155342
$ warsow +timedemo 1 +cg_showFPS 1 +cl_checkForUpdate 0 \ +demo pts1 +next "quit"
2014-02-21Update the parsing for a mesa patch I'm sending out for review.Eric Anholt1-4/+4
2014-02-14Fetch timeafter when the compilation is done.Markus Wick1-6/+2
Popen returns when the new process is opened, not when it's done.
2014-02-14Add layout in dolphin fragment shader to use GL_ARB_blend_func_extended.Markus Wick1-2/+3
2014-02-14Add dolphin-emu shaders.Markus Wick12-0/+1487
2014-02-14Show off a "new" feature of ./run.py in the readme.Eric Anholt1-1/+4
2014-02-14Update the README to use the current utils syntax.Markus Wick1-3/+3
2013-11-20Add the orbital-explorer shaders that Paul sent me.Eric Anholt1-0/+636
2013-11-20Add support for counting geometry shader instructions.Eric Anholt1-1/+5
Tested on orbital-explorer.
2013-11-15Add parsing support for a change I'm planning on proposing to Mesa.Eric Anholt1-2/+2
2013-11-01Skip counting the second pair of an instruction in 16-wide mode.Eric Anholt1-1/+7
Generally we want our count to approximate time, and the two SIMD8 instructions are same time as a SIMD16 instruction, except for the cost to instruction cache pressure. This pattern happens for MAD and LRP a lot, and there are other cases, too. Double-counting these meant that we basically couldn't use shader-db to validate optimizations involving those instructions.
2013-10-14Summarize the count of shaders lost/gained.Eric Anholt1-1/+2
2013-04-09Add shaders from sauerbraten.Eric Anholt5-0/+85
The app mostly uses ARB programs, so there's not much here.
2013-04-09Add shaders from warzone2100.Eric Anholt3-0/+155
2013-04-09Add the shaders dumped in my supertuxkart runs.Eric Anholt3-0/+101
They have more shaders, but they don't seem to be used.
2013-04-09Convert yofrankie to shader_tests.Eric Anholt88-865/+1517
2013-04-09Convert warsow to .shader_tests.Eric Anholt86-13201/+13343
2013-04-09Update 0 A.D. shaders.Eric Anholt6-90/+479
2013-04-08Fix output when a shader fails to compile.Eric Anholt1-1/+1
2013-04-08Default to testing all of shaders/.Eric Anholt1-1/+1
2013-04-08Allow whole directories to be passed to run.pyEric Anholt1-2/+15
2013-04-08Fix up formatting a bitEric Anholt1-3/+3
2013-03-25report.py: Also port to Python 3.Kenneth Graunke1-19/+12
Aside from the usual print() changes, this requires converting the hurt list sorting from the "cmp" method (which was removed) to the "key" approach.
2013-03-25run.py: Use RE object methods directly.Kenneth Graunke1-5/+5
If you compile regular expressions, you're supposed to invoke them like this. I guess the other way works but usually those functions are only used with non-compiled pattern strings.
2013-03-25Remove debug code that slipped into the report.Eric Anholt1-1/+0
2013-03-25Report a time for the execution of each shader test.Eric Anholt1-1/+7
This can be useful for looking at startup time optimization. If you just sysprof a whole run.py, all you learn is that we spend a lot of time in reading builtins for all those short shaders.
2013-03-25Make the report script handle extra whitespace in the run.py output.Eric Anholt1-1/+2
2013-03-25Print the runtime of the runner script.Eric Anholt1-1/+6
I often wonder about this after the fact, and it's slow enough that running again under "time" sucks.
2013-03-25run.py: Set the environment variable for the unigine workaround.Eric Anholt1-0/+1
2013-03-22humus: Replace with shader_test files.Eric Anholt85-2013/+2394
2013-03-22anholt: Switch the shaders from my demo to shader_test files.Eric Anholt9-31/+177
2013-03-22nexuiz: Replace individual shaders with shader_test files.Eric Anholt69-28442/+123204
2013-03-22run.py: Ignore instructions from builtin shaders.Eric Anholt1-1/+9
i965's clear metaops shader shouldn't count against each program.