summaryrefslogtreecommitdiff
path: root/tests/all.py
AgeCommit message (Collapse)AuthorFilesLines
2015-04-14arb_vertex_attrib_64bit: exercise the VertexAttribL interfacesDave Airlie1-0/+5
this just writes attribs and reads the current value back. Signed-off-by: Dave Airlie <airlied@redhat.com> Conflicts: tests/all.py tests/spec/CMakeLists.txt
2015-04-13arb_transform_feedback3: test another skip/next buffer comboDave Airlie1-1/+1
While developing virgl I found this combo wasn't tested by any of the current tests, emit, skip, next buffer, emit. Just add a test to this to exercise the codepath. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-04-13all.py: add ARB_texture_stencil8 tests to all.pyDave Airlie1-1/+14
This adds the tests so far to all.py. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-04-10fbo-colormask-formats: Don't forget to run the core tests.Eric Anholt1-0/+1
All the extensions get fbo-colormask-formats called using the add_fbo_formats_tests test helper, but core formats need to be added manually. v2: Rebase on massive refactor. Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com> (v1)
2015-04-08program_interface_query: add getprogramresourceiv in all.pyMartin Peres1-0/+1
Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-08all.py: fix test nameDave Airlie1-1/+1
Brian's mixed buffer sizes tests broke all.py. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-04-07arb_fbo: add test of mixed color/depth buffer sizesBrian Paul1-0/+1
GL_ARB_framebuffer_object (unlike GL_EXT_framebuffer_object) allows the FBO attachments to be off different sizes. AFAICT, we had no tests to exercise rendering with mixed buffer sizes. Signed-off-by: Brian Paul <brianp@vmware.com>
2015-04-07drawpixels-color-index: new test for glDrawPixels(GL_COLOR_INDEX)Brian Paul1-0/+1
To exercise a Mesa failure after the format overhaul. Note: this test fails on nvidia if the -auto option is given. Signed-off-by: Brian Paul <brianp@vmware.com>
2015-04-07arb_clear_texture-clear-max-level: exercise an nvidia ARB_clear_texture bugBrian Paul1-0/+1
Signed-off-by: Brian Paul <brianp@vmware.com>
2015-04-07program_interface_query: add tests for getprogramresourcenameMartin Peres1-0/+1
Tests the error paths of GetProgramResourceName Tested on NVIDIA's proprietary driver version 346.35. v2: - Test that a NULL name does not crash (suggested by Tapani) Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-07program_interface_query: add tests for getprogramresourceindexMartin Peres1-1/+1
Tests tricky cases of resource naming along with some error cases of getprogramresourceindex. It also replaces the resource-index test that was incomplete and did not consistently report the same number of subtests depending on errors. Tested on NVIDIA's proprietary driver version 346.35. v2: - also test a NULL name (Tapani) Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-07program_interface_query: add tests for getprograminterfaceivMartin Peres1-0/+1
This test exercises the error codepaths of getprograminterfaceiv. Tested on NVIDIA's proprietary driver version 346.35. Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-07program_interface_query: add tests for querying the resourcesMartin Peres1-0/+1
This tests primarily glGetProgramInterfaceiv in various (potentially tricky) program pipelines. All the calls are supposed to succeed as this test is purely functional. This test requires a OpenGL 3.2 core context but also has optional subtests that depend on the following extensions: - GL_ARB_shader_atomic_counters - GL_ARB_shader_storage_buffer_object - GL_ARB_shader_subroutine - GL_ARB_tessellation_shader - GL_ARB_compute_shader - GL_ARB_shader_image_load_store Tested on NVIDIA's proprietary driver version 346.35. v2: Martin Peres - Fix the cs subtest to test PROGRAM_INPUT and not two times the OUTPUT v3: Review from Tapani - require GL_ARB_separate_shader_objects - cosmetic changes - add a comment in common.h to warn about the existence of strings in resource-query.c v4: Martin Peres - add a second subroutine in vs_sub v5: Martin Peres - introduce a patch output in the TCS outputs Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-02arb_sync: Test to demonstrate ClientWaitSync bug.Laura Ekstrand1-0/+1
glClientWaitSync(fence, GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED) may return GL_TIMEOUT_EXPIRED, even though GL_TIMEOUT_IGNORED is a huge integer (18446744073709551615 on Intel Sandybridge with Mesa). The third argument to glClientWaitSync should represent the number of nanoseconds the implementation waits for the signal from fence before giving up and returning TIMEOUT_EXPIRED. This test, adapted from bufferstorage-persistent, demonstrates that glClientWaitSync(fence, GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED) must be called multiple times before the signal is actually recorded and either GL_CONDITION_SATISFIED or GL_ALREADY_SIGNALED is returned. This bug was successfully fixed by Mesa commit 10c82c6 by Kristian Hogsberg. Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2015-04-02texturing: Testing glGenerateMipmap(GL_TEXTURE_CUBE_MAP) without glTexStorage2D.Laura Ekstrand1-0/+1
This test reproduces the cause of Mesa Bug 89526 in Piglit. While investigating 89526, it was discovered that Piglit had no tests that created a cube map texture without glTexStorage2D and then called glGenerateMipmap on it. For this reason, the offending commit was upstreamed before the failure was caught. This test successfully fails when commit 1ee000a is present and passes when 1ee000a is reverted. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-04-01tests/all.py: Don't add glsl-1.50 TextureSize tests twiceDylan Baker1-5/+13
Because gs is a 1.50 features, but is added in the 1.30 and 1.40 loops it currently adds the same tests twice. This corrects that. NOTE: Ilia and I aren't sure this is 100% correct, but it doesn't change the current behavior. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01tests/all.py: remove duplicate oes_compressed_paletted testDylan Baker1-1/+0
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01tests/all.py: move arb_gpu_shader5 out of loopDylan Baker1-18/+18
Same as previous patch. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01tests/all.py: move arb_framebuffer-rgb tests out of loopDylan Baker1-2/+2
This doesn't actually effect the nature or number of tests run. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01tests/all.py: Remove duplicate arb_tessellation_shader_minmax entryDylan Baker1-1/+0
This test was added twice, remove the second copy. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01tests/all.py: fix two tests that had options droppedDylan Baker1-2/+2
I traced these two tests back through git history, and through a series of errors an option required to make them unique was dropped, this corrects that and brings them back to their original state. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-04-01all.py: Fix space in executable name.Laura Ekstrand1-1/+2
Fixes list for compressedtextureimage. Trivial. Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-04-01all.py: Change format for arb_direct_state_access-compressedtextureimage.Laura Ekstrand1-2/+2
arb_direct_state_access-compressedtextureimage should use a more mainstream compression format in all.py. This patch changes it to GL_COMPRESSED_RGBA_S3TC_DXT5_EXT. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2015-03-30tests/all: Fix Windows exclusion of GLX tests.Jose Fonseca1-2/+1
Trivial.
2015-03-26gl-2.0: port const vertex attrib webgl test to piglitIlia Mirkin1-0/+1
This is a rip off of: https://www.khronos.org/registry/webgl/conformance-suites/1.0.2/conformance/attribs/gl-vertex-attrib-render.html Which presently fails with gallium drivers. The logic is identical, just ported to GL and piglit infra. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2015-03-20arb_clip_control: add test for ARB_clip_control.Mathias Fröhlich1-0/+5
This adds clip control to the set of piglit tests. This time with an other bunch of tests covering different depth range settings. v2: Check for ARB_depth_buffer_float where used. Fix and extend comments. Introduce helper for reading and checking the clip control state. Split state and draw related parts into separate methods. Test for Push/PopAttrib. v3: Add tests to tests/all.py. v4: Use piglit_draw_rect_z instead of a hand written function. v5: Check for different depth range values. To implement the above, refactor the implementation. Rebase to current upstream. [airlied: fixed up all.py] Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Tested-by Ilia Mirkin <imirkin@alum.mit.edu> CC: Brian Paul <brianp@vmware.com> CC: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-03-19gl-3.1: Verify error for drawing with default VAOIan Romanick1-0/+1
This was the test case that I wrote for Mesa commit b93dcb0. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2015-03-17all.py: remove remaining uses of run_concurrent=TrueDylan Baker1-22/+19
run_concurrent=True is the default in PiglitGLTest, so there is no need to set it. The majority of the cases of it's use are rebase errors, or the result of patches that were pushed at the time that the flag was switched. This should result in no functional change, but will hopefully result in fewer copy and paste errors. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-17arb_shader_storage_buffer_object: add minmax testAditya Atluri1-0/+5
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2015-03-16all.py: Fix PEP 8 issues.Vinson Lee1-33/+65
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-03-11tests/all: Use grouptools.join for glx_ext_import_context.Jose Fonseca1-3/+3
This fixes the following assertion on Windows: AssertionError: Groups are not paths and cannot contain \. (glx\glx_ext_import_context) Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-03-11spec/arb_blend_func_extended: Add test for SIMD16 dual source blendingIago Toral Quiroga1-0/+2
On Intel hardware at least, SIMD16 dual source rendering requires handling pixel data in two sets of 8 pixels each. Incorrect implementations may fail to map correct colors for each pixel group (for example by using the color for the first group as the color for the second group or viceversa). However, tests that render using solid colors across the entire polygon won't catch these cases (since in that case the color is the same for boths groups of pixels). This test blends using a checker board pattern where each cell is 10px wide and 10px tall. This makes it so that the two sets of 8 pixels issued during SIMD16 operation pack different color data for the pixels involved, enabling testing of correct behavior in that case. v2 (Matt Turner) - Make the test render to a window if -fbo or -auto are not present. Reviewed-by: Matt Turner <mattst88@gmail.com>
2015-03-09all.py: Fix PEP 8 issues.Vinson Lee1-83/+105
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2015-03-06tests/all.py: Fix typo that switched arb with extDylan Baker1-1/+1
This fixes several tests on platforms that support arb_transform_feedback3. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Mark Janes <mark.a.janes@intel.com>
2015-03-05all.py: Fix copy and paste errorDylan Baker1-1/+1
This corrects a copy and paste error in all.py that matches the wrong binary with a test name. This causes an artificial piglit regression on mesa, at least for the Intel driver. This patch fixes that typo. Trivial Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: disable pylint's bad-continuation errorDylan Baker1-0/+6
This is a bug (https://bitbucket.org/logilab/pylint/issue/461/incorrect-hanging-indent-detection-with) that misdetects the hanging indent of the context manager. This silences roughly 300 warnings. v2: - also turn this warning off in quick.py Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: use __future__ functionsDylan Baker1-3/+4
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: Remove run_concurrent=True flagDylan Baker1-1634/+1219
The previous commit made True the default value. This removes ~400 LOC from all.py (about 10%) Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05piglit_test.py: Change run_concurrent to True by defaultDylan Baker1-2/+2
This will flip the value of the flag for PiglitGLTest, ShaderTest, and GLSLParserTest. It will not affect PiglitCLTest (That's OpenCL), because of the previous patch, which causes PiglitCLTest to use a unique concurrency setting method. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: Set run_concurrent=False explicitlyDylan Baker1-506/+588
This will allow us to flip the default value of run_concurrent to True in the next patch. Since the majority of tests are concurrent safe (and honestly many of them that are marked not safe are), this change will help to reduce the number of tests that are marked serial by default by copy-n-paste. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: Use group_manager default_args for exclude_platformsDylan Baker1-59/+50
This simplifies a egl specific tests.
2015-03-05all.py: Use TestProfile.group_manager default_args to set require_platformsDylan Baker1-175/+118
This allows the simplification of a large number of tests, reducing them to one argument, or at least reducing the number of lines that they occupy (or should occupy with reasonable line wrapping).
2015-03-05all.py: add asmparser tests automatically with loopDylan Baker1-443/+17
This works much like the shader_test and glsl parser test options, the difference being that rather than searching the whole tree only the directories with asmparser tests are searched. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: Convert all.py to use TestProfile.group_managerDylan Baker1-3206/+4215
This patch is massive, with a huge amount of churn, because it rewrites almost the entirety of all.py. It has to touch all of the helper functions as well. Of these I modified them appropriately or removed them. Criteria for removal was based on the complexity of the wrapper, and the frequency of use. Very simple functions or those used only a couple of times were removed. v2: - remove duplicate tests entries. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: move all of the helper functions to the top of the fileDylan Baker1-153/+149
This makes it a lot easier to read and work with all.py, which is still absolutely massive. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: use profile.test_list instead of profile.test for glean testsDylan Baker1-2/+2
These tests are already formated using grouptools, with no intermediate tree structures. Moving them to the flat test list reduces the amount of time spent migrating them to test_list before running tests. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-05all.py: remove extra newline in list.Dylan Baker1-2/+1
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2015-03-04all.py: Fix two tests being assigned the same nameDylan Baker1-1/+1
commit 36b63cbbe7 fixed the execution of two tests, but didn't fix the fact that two tests are stored with the same name, thereby replacing the first with the second. This corrects that. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Laura Ekstrand <laura@jlekstrand.net> Reviewed-by: Martin Peres <martin.peres@linux.intel.com>
2015-03-04arb_program_interface_query: GetProgramResourceIndex testTapani Pälli1-0/+1
Test passes on Nvidia GTX 660 (binary driver version 331.38). v2: separate atomic counter index subtest (Ilia Mirkin) + code and shader cleanups + added subroutine index query test v3: fix indentation (argh!) Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2015-03-03arb_direct_state_access: Added *NamedRenderbuffer* testsMartin Peres1-0/+1
v2: review from Tapani - add some documentation - set the minimum GL version to 2.0 v3: - set the minimum GL version to 3.1 core (Ilia) - do some clean up at the end of the test Signed-off-by: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>