summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-07-13run.py: Handle ARB programs as well.HEADmasterKenneth Graunke1-1/+1
2014-07-13split-to-files.py: Also parse ARB program outputKenneth Graunke1-8/+43
v2: Rebase on Dylan's cleanups.
2014-07-13split-to-files.py: Complain about duplicates instead of aborting.Kenneth Graunke1-2/+2
Duplicates happen. They really shouldn't, but printing a "bad things are happening" message is better than aborting and refusing to do anything.
2014-07-13Import "Tesseract" shaders.Kenneth Graunke215-0/+28487
This came from a MESA_GLSL=dump report from: https://bugs.freedesktop.org/show_bug.cgi?id=78691 So I don't know much about the details. Better than nothing.
2014-07-13run.py: don't support .frag or .vert filesDylan Baker1-13/+2
v2 (Ken): Keep the code to skip .out files. Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13Remove all .frag and .vert files.Dylan Baker56-3676/+0
These have problems, so just stop using them. Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2014-07-13run.py: Use shader counts provided by mesaDylan Baker1-30/+18
Instead of counting lines to determine the number of lines in the .out file, walk the .out file looking for the results that mesa printed into the out file. (Note by Ken): This also makes run.py strict - if a shader fails to compile, it will generate an exception. This helps prevent people from commiting corrupt shader files. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
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.