aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-04-24Test interaction of dead code elimination with "break" statements.HEADmasterPaul Berry
Test written by Vadim Girlin <vadimgirlin@gmail.com>. I added explanatory comments. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-04-24Add test for concurrent shader compiler use.Mathias Froehlich
Add a test that creates two contexts and concurrently compiles shader programs to test race conditions of the shader compiler. v3: (Tom Stellard) - Report pass at the end of the tests - Add as a concurrent test v4: (Mathias Froehlich) - Fix comment style Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-24cl: Add test for get_local_size()Tom Stellard
Reviewed-By: Aaron Watry <awatry@gmail.com>
2013-04-24cl: Add test for get_group_id()Tom Stellard
Reviewed-By: Aaron Watry <awatry@gmail.com>
2013-04-24cl: Add test for SHA-256 Ch functionTom Stellard
Reviewed-By: Aaron Watry <awatry@gmail.com>
2013-04-21piglit-summary-junit.py: Convert optparse to argparseDylan Baker
Optparse has been deprecated in favor of argparse upstream (PEP 389 http://www.python.org/dev/peps/pep-0389/), and since we are using argparse already in the other modules, it makes sense to replace optparse and use only one parsing method in all piglit. V2: Dropped some unrelated code per Ken Graunke Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-21piglit-summary-html.py: replace getopt with argparseDylan Baker
Less code, easier to read and more standard, and free help messages. V2: Changed args.overwrite to 'store_true' per Ken Graunke Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-21piglit-merge-results.py: Convert from getopt to argparseDylan Baker
Creates a smaller, simpler file that should be easier to maintain going forward. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-21piglit-merge-results.py: Drop dead codeDylan Baker
An instance of core.Environment was being created, but never used. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-21framework: Treat wglinfo, glxinfo and lspci output as text, not binary data.Jon Severinsson
On Python 3.x this has the side-effect of returning a str instead of a bytes. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-21triangle-rasterization: Fix typo in test argument.José Fonseca
Trivial: test expects `-use_fbo` option for testing FBO rasterization, and not `-fbo`.
2013-04-20piglit-summary.py: remove unused importsBrian Paul
As suggested by Dylan Baker.
2013-04-20cl: Add test of get_global_size(dim)Aaron Watry
Based on the test cases for get_global_id Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
2013-04-20cl: Fix char/short test namesAaron Watry
Several tests still had '%' in the test names, which Tom made an illegal character a ways back. Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
2013-04-19add new piglit-summary.py script for printing summaries of results file(s)Brian Paul
If only one result file is specified, just print all the tests followed by the outcome. For example: fbo/FBO blit from missing attachment: pass fbo/FBO blit to missing attachment: fail fbo/fbo-1d: pass fbo/fbo-3d: crash [...] If multiple result files are specified, we'll print pass/fail/etc for each file. Example: fbo/FBO blit from missing attachment: pass pass fbo/FBO blit to missing attachment: fail pass [...] If -s (--summary) is specified, only print a summary of the number of passes, fails, crashes, etc. if -d (-diff) is specified with multipe result files, only print the tests which had different outcomes. Good for spotting regressions. v2: fix -l option issues Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-04-19add a simple glinfo "test" programBrian Paul
When doing a full piglit run it's helpful to have all the OpenGL driver version/vendor/extension info. The piglit framework tries to run glxinfo/wglinfo and include the output in the results file, but sometimes those programs aren't installed. Reviewed-by: José Fonseca <jfonseca@vmware.com> Reviewed-by Tom Gall <tom.gall@linaro.org>
2013-04-19arb_texture_multisample: add test to check sample positions v3Christoph Bumiller
v3: Made more readable, report observed sample positions of failure.
2013-04-19ARB_ubo/maxuniformblocksize: unmap buffer before drawing with itChristoph Bumiller
From the description of glMapBuffer: "A mapped data store must be unmapped with glUnmapBuffer before its buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store."
2013-04-18arb_internalformat_query-minmax: initialise buffer_size_in_elementsDave Airlie
Since we never bail on the first failure in this test, we can return from the GetInternalformativ without buffer_size_in_elements ever being touched, due to misc GL error (mesa_base_fbo_format fails), this then causes us to loop a lot later and print error messages than make piglit eat all the pies^WRAM. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-04-17util: remove old comment about GLUT vs PIGLIT flagsMarek Olšák
Pointed out by Chad Versace.
2013-04-16framework: Catch "No such file or directory" by errno, not strerr.Jon Severinsson
In Python 3.x the strerr is more verbose, and thus fails the equals test. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16framework: Don't use automatic tuple parameter unpacking.Jon Severinsson
It is no longer supported in Python 3.x, but unpacking the tuple parameter inside the function works just fine on both old and new Python versions. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16framework: Port from string.find to str.find (required by python 3.x)Jon Severinsson
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16framework: Consistently use Python 2.2+ syntax for dictionary key checks.Jon Severinsson
The old syntax is no longer supported in Python 3.x. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16framework: Consistently use Python 2.6+ syntax for exception objects.Jon Severinsson
The old syntax is no longer supported in Python 3.x. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16framework: Fix "inconsistent use of tabs and spaces in indentation" warnings.Jon Severinsson
These warnings have become fatal errors in Python 3.x. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16Rework the PIGLIT_GL_VISUAL flags, fix RGB vs RGBA vs ALPHA confusionMarek Olšák
Changes: - SINGLE is removed, because its value was 0 - ALPHA is removed, because it becomes redundant with this change - RGB asks for an RGB visual - RGBA asks for an RGBA visual - if RGB and RGBA are unset, it asks for a visual without RGB(A) Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> v2: fix glut
2013-04-15cl: Fix Windows build.José Fonseca
Fixes two trivial issues: - on Windows large integers like 0xff000001 are not `int` objects, but rather `long` objects, so accept both types. - and the error message caused exception TypeError: cannot concatenate 'str' and 'long' objects
2013-04-13glsl-1.30: add test for default in switch not after all case statementsRoland Scheidegger
By the looks of it "default" is not required to appear as last statement in a switch expression, and c rules should be followed (which is probably a mess to implement thanks to fallthrough). Seems to fail with mesa glsl compiler (at least with tgsi translation). Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-12gtf: Parse either the old or new GLES conformance suite output.Eric Anholt
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-04-12gtf: Update arguments for current GLES conformance from upstream.Eric Anholt
They switched the default for imagefileio, so they renamed the option (while leaving out support for the old option, making our tests fail). This happened some time between our last ES2 drop, and ES3. Since the current stuff still contains all the ES2 tests, we don't need support for the old version. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-04-10Test interaction of primitive restart and transform feedback.Paul Berry
v2: Fix "written" subtest (which was testing the wrong query). Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-10new test: glsl-fs-uniform-array-loop-unroll.shader_testFrank Henigman
In a loop, access past the end of a uniform array, to check if stages after loop unrolling can handle the bad access. Reproduces https://bugs.freedesktop.org/show_bug.cgi?id=59429 Signed-off-by: Frank Henigman <fjhenigman@google.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-09glsl-es-1.00: sanity.shader_test fragment needs default precisionTom Gall
GLSL ES 1.00 spec 4.5.3 page 36: "The fragment language has no default precision qualifier for floating point types." Adding default precision for float in the fragment shader so this sanity testcase doesn't error out. mediump is choosen since according to 4.5.2 page 34: "The fragment language requires any uses of lowp and mediump to compile without error. Support for highp is optional." Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-04-09Test that transform feedback works with non-flat integers.Paul Berry
Commit 0fac0a6 (Modify tests for error checking on "flat" keyword to match updated specs) adopted the GLSL 1.50 rules for "flat" varyings for all desktop GL tests (the rationale was that this change likely reflects a bug fix rather than a deliberate behavioural difference). The GLSL 1.50 rules allow a vertex shader output to be a non-flat integer provided that it isn't consumed by the fragment shader. In particular, this means that a non-flat integer may be used with transform feedback. This test verifies that transform feedback works correctly for all integral types, even if they are not declared as "flat". Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-04-06draw-pixels: use default window size, for WindowsBrian Paul
And set the pixel unpack alignment to 1 so that we don't fail if the window width isn't a multiple of four. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06draw-pixels: use better test valuesBrian Paul
As it was, many of the generated / expected pixel values were all zeros. Use better values that actually fit in the given datatype. For example, we were trying to store "0x23 << (6 - j)" in a GLbyte. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06draw-pixels: display results when there's a failureBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06draw-pixels: whitespace fixes, remove unneeded parenthesisBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06gl-1.0: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_vertex_buffer_object: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_framebuffer_object: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_shader_objects: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06arb_sampler_objects: use default window size to fix Windows runBrian Paul
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-06lodbias: increase window size to fix test on WindowsBrian Paul
Before, the 96x96 window got bumped up to 116x96 by Windows and we saw a "Got spurious window resize in automatic run" message and the test reported "warn". Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-04-05arb_shader_texture_lod-texgradcube: Test explicit derivatives for cube mapsRoland Scheidegger
Similar to arb_shader_texture_lod-texgrad, but using cube maps instead. Given the somewhat undefined behavior of explicit gradients with cube maps, the main purpose of the test is really to test that those work at all, as there doesn't seem to be any other test covering this. That said, drivers which simply drop explicit derivatives on the floor (like softpipe) pass this perfectly as it simply compares implicit vs. explicit behavior (which, given the fuzzy specification, might not be really required to be the same here, though given the chosen values, that is the major axis derivatives being zero, it might seem like a reasonable assumption). I guess something which would also test that the implementation is really using explicit derivatives instead of implicit ones would also be desirable, but I'll leave that for now, I couldn't really come up with something. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-04-02Fix all.tests breakage from adding AMD_performance_monitor tests.Kenneth Graunke
Fixes "invalid syntax" errors when running Piglit. I could have sworn I tried running Piglit normally, but I must have made last minute changes. Sorry for the trouble.
2013-04-02Fix build of shader_runner for GLES.Paul Berry
Commit f184de94 (shader_runner: Add lod_bias option to texparameter) added support for testing the GL_TEXTURE_LOD_BIAS texture parameter to shader_runner. However, this feature is only available in desktop GL. This caused compile errors with GLES. This patch ifdefs the feature out when building the GLES version of shader_runner. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-04-02provoking-vertex: also test clockwise trianglesBrian Paul
in addition to the counter-clockwise triangles. Plus minor clean-ups. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-04-01amd_performance_monitor: s/__func__/__FUNCTION__/Vinson Lee
__func__ is not available on MSVC. Signed-off-by: Vinson Lee <vlee@freedesktop.org>