summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-10-15Add a simple arb_shader_stencil_export testHEADmasterBen Widawsky4-0/+125
2015-10-16arb_arrays_of_arrays: test linking of interface fieldsTimothy Arceri6-0/+222
Test results: AMD Radeon HD 6670 - Catalyst 14.501.1003 OpenGL 4.4 vs-to-fs-interface-field-mismatch.shader_test - fail vs-to-fs-interface-field-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized-mismatch.shader_test - crash vs-to-fs-interface-field-unsized-mismatch2.shader_test - crash vs-to-fs-interface-field-unsized.shader_test - crash vs-to-fs-interface-field-unsized2.shader_test - crash Nvidia GeForce 840M - NVIDIA 346.47 vs-to-fs-interface-field-mismatch.shader_test - fail vs-to-fs-interface-field-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized-mismatch.shader_test - fail vs-to-fs-interface-field-unsized-mismatch2.shader_test - fail vs-to-fs-interface-field-unsized.shader_test - pass vs-to-fs-interface-field-unsized2.shader_test - fail
2015-10-16arb_arrays_of_arrays: add nested struct indirect testTimothy Arceri1-0/+100
This tests that Mesa generates the correct uniform offset for indirects for the two scenarios where a member of AoA will have an impact. 1) A member is an AoA 2) A member is an AoA of structs
2015-10-16ext_transform_feedback: output better information about which varying has ↵Timothy Arceri1-5/+6
incorrect data
2015-10-16ext_transform_feedback: add arrays of arrays test to max-varyingTimothy Arceri1-38/+175
Test results: Nvidia GeForce 840M - NVIDIA 346.47: pass V2: report subtest results on pass as well as fail
2015-10-15gles-3.0: fix build errors (trivial)Tapani Pälli1-2/+4
read-depth.c:130:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode read-depth.c:141:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reported-By: Jan Vesely <jan.vesely@rutgers.edu>
2015-10-14glsl-es-3.10: compiler test for glHelperInvocationTapani Pälli1-0/+14
Test passes on Nvidia binary driver (346.59). Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-10-14gles-3.0: NV_read_depth extension testTapani Pälli3-0/+170
v2: review feedback from Iago and Ian Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-10-13glsl-es: Verify rules about constant expressions w.r.t. sizing arraysIan Romanick4-0/+76
NOTE: Without patches recently posted to the mesa-dev mailing list, Mesa fails spec/glsl-es-3.00/compiler/array-sized-by-sequence.*. v2: Fix #version line in spec/glsl-es-1.00/compiler/array-sized-by-sequence-in-parenthesis.vert. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2015-10-13glsl-es: Additional constant initializer tests.Ian Romanick8-0/+178
Most built-in functions with constant-expression parameters are also constant expressions. GLSL ES 1.00 and 3.00 differ as to whether or not the sequence operator is a constant expression. Note: spec/glsl-es-1.00/compiler/const-initializer/from-function.* and spec/glsl-es-1.00/compiler/const-initializer/from-sequence-in-function.* currently fail on Mesa. This is very confusing because the nearly identical spec/glsl-es-3.00/compiler/const-initializer/from-function.* tests both pass! Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2015-10-13glsl-es: Verify restrictions on global variable initializersIan Romanick30-0/+695
Section 4.3 (Storage Qualifiers) of the OpenGL ES 1.00.17 spec says: "Declarations of globals without a storage qualifier, or with just the const qualifier, may include initializers, in which case they will be initialized before the first line of main() is executed. Such initializers must be a constant expression." The GLSL ES 3.00.4 spec has similar language. Desktop GLSL does not restrict initializers for global variables. Now it's okay for Matt to be irritated. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92304 Reviewed-by: Mark Janes <mark.a.janes@intel.com> Tested-by: Mark Janes <mark.a.janes@intel.com> Cc: Tapani Pälli <tapani.palli@intel.com> Cc: Mark Janes <mark.a.janes@intel.com> Cc: Marta Lofstedt <marta.lofstedt@intel.com>
2015-10-12arb_gpu_shader_fp64: expand get uniform even further.Dave Airlie1-4/+27
Ilia pointed out the fix patch didn't go far enough, so add some tests to cover more cases, specifically: a) reading from a dvec4 into a float b) reading from a vec4 into doubles. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-10-09tox: Also test python 3.{3-5} for the generators.Dylan Baker1-7/+19
This tests the test generators with python 3.x as well as 2.x. The generators have been supposed to build with python 3.3+ for some time, but haven't. This exposes a bug in the tessealation generators that keep them from building with python 3.x, and these tests fail. This is expected, and there are patches out for review to correct this. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09tox: Add a test module for testing the generators.Dylan Baker2-1/+145
This test module provides a function that enumerates the test generators (it assumes that all files ending in .py are generators unless they're black listed), and generates a nose job for each of them. This allows us to ensure that the generators work in an automated fashion, and with a simple patch will allow us to test them with various versions of python (2.7 and 3.3+), which we claim to support with the generators. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09framework: add tox testing supportDylan Baker3-0/+19
tox is a python test manager that runs the tests in isolated environments with their own copies of dependent libraries, and can be used to test against multiple versions of python. This allows us to easily test the framework with and without the acceleration modules it can optionally use (simplejson and lxml), it will also allow us to test against multiple versions of python 3.x (which we support for the generators, and presumably will support in the future) This uses the coverage module, and uses nose's cover-tests option. Unfortunately nose assumes that anything /[Tt]est/ is a test, and hides the tests for the test package. This might be resolvable by modifying the regex, but it isn't something straightforward to fix. Using --cover-tests will get us the test package, but it also gets us the tests package. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09framework/tests/results_tests.py: add new method for dict-like objectsDylan Baker1-8/+17
This adds a dictionary assert that is similar to assert_dict_equal, but it calls dict() on each object before comparing them. This allows dictionary like objects (like Subtest) to be compared with the powerful nose tools. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09framework/tests/base_tests.py: mark timeout tests as slowDylan Baker1-0/+3
This marks the timeout tests as slow (because they are). This is nice for excluding things. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09framework/tests: replace custom decorator with nose's attr decoratorDylan Baker2-15/+4
This is a more standard way to mark tests out as special case, and not rolling our own code is good. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09framework/tests/core_tests.py: add error message to testDylan Baker1-1/+3
Adds a message to test_parse_listfile_tilde. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09Add editorconfig file.Dylan Baker1-0/+18
Editorconfig is a very simple format that has a few very basic formatting options (namely about indenting). It's not very complex or powerful, but it's supported in a *lot* of editors (http://editorconfig.org/#download), though often through plugins. This configures any editor that will use editorconfig to set indents correctly for C/C++ files (and their headers), python files, and cmake files as used by piglit. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-09draw-pixel-with-texture: adjust to ensure glTexCoord is taken into accountMatthew Dawson1-4/+4
The old version of the test assumed the glTexCoord call was being properly used in the system. However, at least in mesa, it is easy for an implementation to ignore the given coordinate. Thus setup the texture and texture coordinate to ensure it is respected. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2015-10-09tests/general: add draw-sync to all.pyAlbert Freeman1-0/+1
The draw-sync test (from 2011) was never placed in all.py. Signed-off-by: Albert Freeman <albertwdfreeman@gmail.com>
2015-10-09interpolate-at-sample-position: test center and centroid at the same timeMarek Olšák1-16/+38
This covers more cases.
2015-10-08framework/backends/junit.py: add start and end time to stderrDylan Baker1-0/+2
This adds start and end time to the junit stderr. It would be nice to have someplace better to put this, but junit doesn't allow extra tags in the xml, and there are plans to use this data for post processing tasks. Reviewed-by: Mark Janes <mark.a.janes@intel.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-08framework: use TimeAttribute for TestResult and TestrunResultDylan Baker13-57/+125
This makes use of the time TimeAttribute for handling times in results, both for tests and for runs. This change requires bumping the json version, and a large chunk of the changes in this patch are for that change. This could be split into two patches, but that would require making two sequential bumps to the json results version, and I felt that the larger patch was better than making two version bumps. Reviewed-by: Mark Janes <mark.a.janes@intel.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-08framework/tests/json_results_update_tests.py: make test more robustDylan Baker1-9/+12
This makes the test that tries to run a version 1 result to <current version> more robust by always trying to update to whatever the latest is. Reviewed-by: Mark Janes <mark.a.janes@intel.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-08framework: Add a TimeAttribute classDylan Baker3-2/+71
This class will provide a new interface for time, one that stores the start and stop times, rather than the total time. It then provides methods for getting the total and the delta (as used in the summary). This commit adds the new class and tests for the class, but doesn't start plugging it in yet. The goal of this change is to allow post-processing to determine which tests were running in parallel. Reviewed-by: Mark Janes <mark.a.janes@intel.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-07glsl-es: Test whether or not sequence can be a constant expressionIan Romanick4-0/+76
The rules changed from GLSL ES 1.00 to GLSL ES 3.00, so the two tests expect opposite results. NOTE: Mesa currently fails tests/spec/glsl-es-3.00/compiler/constant-sequence.vert and the related GLES3 conformance test. v2: s/sequnece/sequence/ noticed by Matt. v3: Move tests into const-initializer subdirectories. Add tests with more complex use of sequence operator. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> [v2] Cc: Tapani Pälli <tapani.palli@intel.com> Cc: Mark Janes <mark.a.janes@intel.com> Cc: Marta Lofstedt <marta.lofstedt@intel.com>
2015-10-07ext_packed_depth_stencil/readdrawpixels: add missing \n in printf stringsBrian Paul1-2/+2
Trivial.
2015-10-07oes_compressed_paletted_texture: fix BindTexture() parameterNanley Chery1-1/+1
The second parameter to glBindTexture should accept a texture handle, not the address of one. Cc: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-07framework/tests/deqp.py: hide 'dumping caselist' dialog.Dylan Baker1-2/+4
No one wants to see this, it isn't useful, and it produces a bunch of clutter, so just send it to /dev/null (or your OS's equivalent). Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-07clipflat: Fix subtest reportingDylan Baker1-21/+74
There are two problems with the way this test reports subtests: First, it only reports subtests when they fail. This has all kinds of problems. It's not at all what the summary code expects, the summary code expects that subtests are always present, which means that they will show up under disabled/enabled pages instead of fixes/regressions, which in turn, will confuse developers. Second, it tries to report lots of information as the subtest name. This causes the JSON parser in python (JSON is used by the tests to communicate with the runner) to choke and die. This patch makes a couple of changes to correct this. First, it reports the subtest result always, whether pass or fail. Second, it simplifies the names of the subtests, and passes the other information to stdout, which the runner will scoop up and record for a developer to go look at. v2: - Fix some formatting that wasn't right (indents with 4 spaces not 8 space tabs) - Report all subtests in both pass and fail cases - Fix some minor things as reported by Brian Paul - simplify some control flow - add function to report each quadrant as a separate subtest with nice names Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-10-07arb_program_interface_query: revert linker test for querying varyingsTapani Pälli1-33/+0
This reverts commit e68f387df54767c177fcbf9e2f0b44a98525eb2a. This test is wrong. Varyings as GL_PROGRAM_INPUT should be in the resource list only when using SSO, not in case of full shader programs with multiple stages. I will write a separate test for that case. Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2015-10-06cl: Update integer/long limit tests to detect incorrect storage sizesAaron Watry1-6/+6
The tests for the integer/long minimums do not properly check that the value is stored in the correct type. E.g. (-2147483648) actually gets parsed as a long by the preprocessor, and therefore INT_MIN is actually stored as long and can't be automatically vectorized. By subtracting a vector with value of 0 from the given defined *_MIN and then grabbing the first element of the resulting vector, we can make sure that the values are actually stored in the correct type. v2: Remove char/short modifications. Test *_MAX vectorization as well as _MIN for int/long Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu> Reported-By: Moritz Pflanzer <moritz.pflanzer14@imperial.ac.uk> Signed-off-by: Aaron Watry <awatry@gmail.com>
2015-10-06arb_shader_atomic_counters/array-indexing: properly close comment blockBrian Paul1-1/+1
To silence warning: "/*" within comment.
2015-10-06arb_direct_state_access/texture-storage: include dsa_util.h headerBrian Paul1-0/+1
To silence warning: implicit declaration of function ‘dsa_create_program’
2015-10-06Remove the two sided stencil extension Glean testJuliet Fru4-954/+0
Replaced by new piglit gl-2.0-two-sided-stencil test. Reviewed-by: Brian Paul <brianp@vmware.com>
2015-10-06Port the two sided stencil extension tests from Glean to Piglit.Juliet Fru3-0/+753
This test replaces the original glean tstencil2.cpp test. Reviewed-by: Brian Paul <brianp@vmware.com>
2015-10-06arb_direct_state_access/create-textures: also check invalid zero targetBrian Paul1-0/+4
Check that glCreateTextures rejects target=0, per the spec. Also, Mesa internally uses target=0 for a special state (texture gen'd but not bound) so it's good to test.
2015-10-06texelFetch: Fix the divisors when testing MSAA with > 10 samplesNeil Roberts1-3/+1
Previously the test was trying to convert a sample number to the range [0,1] by dividing by 10.0. This doesn't work when testing 16x MSAA because it ends up with values greater than 1.0 which get clamped. This patch makes it divide by miplevels so that it will work whatever the number of samples is. Cc: Chris Forbes <chrisf@ijw.co.nz> Cc: Marek Olšák <marek.olsak@amd.com>
2015-10-06varying-packing: add arrays of arrays supportTimothy Arceri2-41/+100
V3: rebase and test double types V2: renamed variables from 'inner' that should have been 'outer'
2015-10-05khr_texture_compression_astc: Add array testsNanley Chery10-0/+304
These tests check that 2D texture arrays work for the 5x5 and 12x12 block sizes. v2. add to all.py (Ilia). create test for gles2. v3. upgrade required GLES version to 3.1 (for 2d array support). v4. Move CONFIG block to the top of the file (Chad). Acked-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-05khr_texture_compression_astc: Add API testsNanley Chery4-0/+389
These tests check that the GL error returned by valid and invalid API calls are as defined by the spec. v2. add test to all.py (Ilia). update copyright date (Dylan). numerous changes (Chad). v3. cube map array support is in OpenGL ES 3.2 (not 3.0). Reviewed-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-05khr_texture_compression_astc: Add miptree testsNanley Chery90-0/+408
These tests run through every ASTC configuration, comparing the render of a compressed texture against a render of the decompressed version of that compressed texture. The compressed and decompressed texture was generated with a reference codec. v2. numerous changes (Chad). v3. upgrade required GLES version to 2. Reviewed-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-05arb_texture_compression/invalid-formats: Add ASTC to list of formatsNanley Chery2-1/+55
ASTC formats are added to the list of formats that should not be returned by the COMPRESSED_TEXTURE_FORMATS query. v2. add astc test to all.py (Chad). Reviewed-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-05util: Add a piglit_probe_rects_equal_rgba() functionNanley Chery2-0/+112
This function compares two rectangles for equality. This is useful to compare the rendering of individual miplevels in a miptree while avoiding too much resource consumption. v2: insert spaces in addition operation (Chad). Reviewed-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
2015-10-05oes_compressed_paletted_texture: add missing BindTexture()Nanley Chery1-0/+1
Without glBindTexture(), the test was unintentionally modifying the default texture object. Make it use the generated texture instead. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-10-05texsubimage: use piglit utility block dimension functionNanley Chery2-45/+4
Use the piglit utility function for determining format block dimensions instead of using a test-specific function. This requires adding some formats not originally in the piglit-util function. Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2015-10-05arb_shader_storage_buffer_object: global scope binding qualifier testTapani Pälli1-0/+20
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
2015-10-04cl: add printf builtinSerge Martin1-0/+9
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>