summaryrefslogtreecommitdiff
path: root/run.py
AgeCommit message (Collapse)AuthorFilesLines
2016-01-08run.py: Add compute shader support.Kenneth Graunke1-3/+3
Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-01-05run.py: Add tessellation shader support.Kenneth Graunke1-3/+3
Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-12-01run.py: Update for new GLSL/ARB printings.Matt Turner1-1/+1
2015-10-01run.py: Look for shader_runner, not glslparsertest.Matt Turner1-1/+1
2015-05-26run.py: Set PIGLIT_PLATFORM=gbm.Matt Turner1-0/+1
Lets me use run.py without extra arguments without X.
2015-03-28run.py: Make it work with vec4 VS again.Matt Turner1-1/+1
2014-11-11Don't overwrite the INTEL_DEBUG environment variableJason Ekstrand1-1/+5
Print a warning and append shader-db's arguments instead
2014-11-11Direcly set environment variables instead of using update()Jason Ekstrand1-6/+3
2014-08-18run.py: Use INTEL_DEBUG=fs, not wm.Kenneth Graunke1-1/+1
INTEL_DEBUG=wm will probably go away at some point.
2014-08-18run.py: Set allow_glsl_extension_directive_midshader=true.Kenneth Graunke1-0/+1
Fixes problems with warsow/25.shader_test, and would help Unigine shaders as well.
2014-08-15run.py: Stop setting force_glsl_extensions_warn.Kenneth Graunke1-1/+0
This was only needed for compiling the outdated Unigine shaders, which I don't care about - the newer Unigine code doesn't need this. It apparently also breaks things these days, since it enables GL_ARB_gpu_shader5, which treats 'sample' as a reserved word. Reported-by: Matt Turner <mattst88@gmail.com>
2014-07-13run.py: Handle ARB programs as well.Kenneth Graunke1-1/+1
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-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-13run.py: Cleanup pylint warningsDylan Baker1-16/+16
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 Baker1-0/+5
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 Baker1-1/+3
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 Baker1-1/+1
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-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.
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-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-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-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-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-22run.py: Ignore instructions from builtin shaders.Eric Anholt1-1/+9
i965's clear metaops shader shouldn't count against each program.
2013-03-22Make split-to-files generate complete shader_tests.Eric Anholt1-3/+9
2013-03-22Move the environment setup out of the per-shader function.Eric Anholt1-9/+7
2013-03-22Switch to just relying on a link to piglit's binaries from the cwd.Eric Anholt1-1/+7
Making other people replace my path with their path sucks.
2013-03-22run.py: Process shaders concurrently.Kenneth Graunke1-8/+10
Now that we've accumulated a non-trivial amount of shaders, running shader-db takes far too long. Parsing the shaders in parallel is embarassingly easy and gives roughly a 4x speed-up on my dual-core hyperthreaded Ivybridge system. This may not be the most efficient way to implement the thread pools, but it seems to work well enough. Requires Python 3.2.
2013-03-22run.py: Port to Python 3.Kenneth Graunke1-6/+6
There's just no reason to be using Python 2 anymore. Aside from the usual print() changes, this requires converting the output of subprocess.Popen.communicate() from a byte string to a proper Python str object.
2012-06-06Convert the scripts to python and make them way better.Eric Anholt1-0/+98
This one parses the 8/16 wide fs separately, writes test output to a file, and handles ^C sanely.