summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-02-03Add texturing/texsubimage-unpackNicolai Hähnle3-0/+528
This is similar to the texsubimage test, but checks various type and format conversions as well as a different set of pixel unpack settings. v2: cleanups and share some code with texsubimage
2016-02-03fbo-formats: include information about number of bits in sized formatsNicolai Hähnle1-194/+202
The idea is that tests can get an idea of how much precision to expect when using these formats. v2: clarify that min_bits is for the depth component (Ian Romanick)
2016-02-03Add piglit_equal_images_update_rgba8 to piglit-util-glNicolai Hähnle3-24/+71
This is a slightly extended variant of equal_images from texsubimage which will also be used in the new texsubimage-unpack test. I've decided to call it "equal" instead of "compare", since I feel that makes the meaning of the return value more obvious.
2016-02-03piglit_num_components: add more pixel unpack formatsNicolai Hähnle2-4/+9
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-02-02arb_no_fb_attach: add a test with just samples passedIlia Mirkin3-0/+180
In case atomic counters aren't available, this is a simpler test that just makes sure that the width/height are properly set. Also add tests for discard as well as changing the fb params. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2016-01-27EXT_blend_func_extended: fix test bugs exposed by the nvidia blobRyan Houdek2-3/+6
fbo-extended-blend-pattern was using an implicit integer to float conversion which isn't allowed in ESSL. builtins program linker error checking was incorrect, do explicit link checking instead. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-01-27cl: Extend program scope arrays with more typesJan Vesely1-4/+98
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2016-01-27cl: Don't warn when using deprecated functions.Jan Vesely1-10/+4
Deprecated features are required to be supported until they are removed. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2016-01-27cl: Add scalar to constant load testJan Vesely1-4/+14
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2016-01-27sso: Simple transform feedback with rendezvous by location testIan Romanick3-0/+175
Use a single vertex shader with outputs with non-contiguous explicit locations. Specify transform feedback with the vertex shader outputs landing in a different order than the explicit locations specify. Verify that the order specified by glTransformFeedbackVaryings is used. V2: rebased, fixed trailing whitespace (Timothy) Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-27sso: Add a utility function to compile a vertex shader program w/XFBIan Romanick2-0/+32
V2: rebased (Timothy) Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-27sso: Add a utility function to configure a transform feedback objectIan Romanick2-0/+23
V2: rebased (Timothy) Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-27sso: Verify that uniforms has per-program namespaceIan Romanick3-0/+171
As opposed to per-pipeline namespace. Setting a uniform named "a" one program attached to a pipeline should not affect the value of a uniform named "a" in a different program attached to the same pipeline. V3: rebased (Timothy) v2: Use pick_a_glsl_version utility function. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-27sso: Verify the commands that are / are not compiled into display listsIan Romanick3-0/+848
V3: rebased (Timothy) v2: Use pick_a_glsl_version utility function. Add a comment about core profile. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-26cmake: Simplify logic for MSVC 2013 U4.Jose Fonseca1-4/+2
Matches Waffle's https://github.com/waffle-gl/waffle/commit/d15a83a453c87b445d8abf19d82668bca1a389d4 Trivial.
2016-01-25arb_fb_no_attach: fix subtests to always runIlia Mirkin1-3/+3
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2016-01-22xts: Add a rendercheck case for a bug I made in glamor.Eric Anholt1-0/+1
Drawing to a8 is special now, and I missed it in the CA path. Reviewed-by: Dave Airlie <airlied@redhat.com>
2016-01-22sso: add test for linking gs without explicit locationsIlia Mirkin1-0/+57
Mesa treats each GS input as taking up 3 locations instead of 1, because it doesn't de-array the vars. This causes it to take col3 from VS instead of col1. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
2016-01-22arb_enhanced_layouts: more fs output testsTimothy Arceri4-0/+143
2016-01-22arb_shading_language_420pack: test multiple layout qualifiers on the same lineTimothy Arceri6-0/+145
Test results: Nvidia GeForce 840M - NVIDIA 352.41: The results from the Nvidia binary are a little all over the place with these tests, most of the tests with arb_shading_language_420pack enabled fail but if the GLSL version is changed to 4.20 they pass. The only tests that pass with arb_shading_language_420pack enabled are the global tests but that seems to be because they do not detect the duplicates and fail the negative tests. Mesa 11.2 (dev): pass V3: drop tests that should target ARB_enhanced_layouts V2: fix version mismatch in location tests, and prefix variable with out in global tests Cc: Matt Turner <mattst88@gmail.com>
2016-01-22arb_shader_subroutine: test UniformSubroutinesuivTimothy Arceri3-0/+114
When setting the index for a subroutine with an explicit location, inactive locations in the indices param should be ignored. This test causes a segfault in Mesa. https://bugs.freedesktop.org/show_bug.cgi?id=93731
2016-01-22arb_enhanced_layouts: tests compiler error if align qualifier not a power of 2Timothy Arceri6-0/+148
2016-01-22arb_enhanced_layouts: test align layout qualifier can only be used with ↵Timothy Arceri14-0/+357
std140 or std430
2016-01-22arb_enhanced_layouts: UBO explicit offset testTimothy Arceri5-0/+266
This is just a lazy copy of the arb_uniform_buffer_object bufferstorage test updated to make use of explicit offsets. Test results: Nvidia GeForce 840M - NVIDIA 352.41: fail This fails on the Nvidia driver due to a bug in handling the named uniform block in the fragment shader. If the name is removed the test works as expected.
2016-01-21framework/test/base.py: Add environment variable to overwrite timeoutsDylan Baker2-1/+12
This variable allows timeouts to be disabled, which can be useful for debugging tests. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21framework/backends/junit.py; timeouts are errorsDylan Baker1-1/+1
Previously a timeout would be marked as pass, but that makes no sense. This marks it as an error. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21framework/test/base.py: use subprocess32 for timeouts.Dylan Baker3-86/+179
Subprocess32 provides a backport of python 3.2's subprocess module, which has a timeout parameter for Popen.communicate. When the timeout runs out then an exception is raised, and when that exception is caught we can kill the process. This is fairly similar to the way the current timeout mechanism works, except that the current mechanism is not thread safe. Since one of the major features of piglit is that it offer's processes isolated concurrency of tests, it makes sense to make the effort to provide a timeout mechanism that supports concurrency. Unfortunately there isn't a good cross platform mechanism for this in python 2.x, even with subprocess 32 only *nix systems are supported, not windows. The big advantage of this is it allows consistent behavior between python 2.x and 3.x as we look toward the future and the possibility of using a hybrid approach to transition to python 3.x while maintaining 2.x support until it's not needed. This patch look pretty substantial. It's not as big as it looks, since it adds some fairly big tests. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21framework/tests/base_tests.py: use utils helper to simplify testDylan Baker1-12/+8
This just saves some code duplication. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21framework/tests/base_tests.py: fix descriptions of two timeout testsDylan Baker1-2/+2
These tests claimed to test the timeout mechanism, but what they're really testing is the status changing ability of the timeout mechanism. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21framework/tests: add helper for checking for 3rd party modulesDylan Baker2-2/+10
This little helper skips a test if a module isn't available. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
2016-01-21Test that cubemaps with non-matching faces are incompleteNeil Roberts3-0/+191
This creates a cubemap where one of the faces either has a different size or a different format from the other faces and then checks that it is incomplete by rendering with it and veryifying that the sampler returns solid black. The format test currently fails on Mesa. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2016-01-21Add glsl-fs-discard-only.shader_testNicolai Hähnle1-0/+22
Test a pure depth write with conditional discard in the fragment shader. This currently fails in radeonsi. v2: use vertex shader passthrough and move to tests/spec/glsl-1.10 (Ilia Mirkin) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93761 Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-01-21shader_runner: add basic depthbuffer testing supportNicolai Hähnle1-1/+20
This commit adds an optional 'depthbuffer' line to the [require] section as well as the possibility of enabling/disabling GL_DEPTH_TEST and probing depth values. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2016-01-21arb_shader_image_size: fix last use of IMAGE_TIlia Mirkin1-1/+1
Trivial
2016-01-20primitive-restart: Replace assert(glGetError()==0)Ian Romanick1-6/+6
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Vinson Lee <vlee@freedesktop.org>
2016-01-20primitive-restart: Use stdboolIan Romanick1-30/+30
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-01-20primitive-restart: Remove compile-time tests for GL 3.1Ian Romanick1-4/+0
These were added in 28ca3c1, and they were a good idea in 2010. I think it's safe to count on glext.h with the proper functions today. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Cc: Brian Paul <brianp@vmware.com>
2016-01-20primitive-restart: Remove comment about GLEW 1.5.2Ian Romanick1-4/+0
Piglit doesn't use GLEW, so the GLEW version doesn't matter. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-01-20arb_shader_subroutine: Declare a subroutine function with an incorrect typeIan Romanick1-0/+18
This was accidentally discovered while trying to reproduce bug #93722. NOTE: This test fails on Mesa. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2016-01-20arb_shader_subroutine: Call a subroutine by the type name instead of by ↵Ian Romanick1-0/+30
uniform name This should be a compilation error because it shouldn't be able to find a function prototype. At least that's my understanding of the spec. This was accidentally discovered while trying to reproduce bug #93722. NOTE: This test fails on Mesa. v2: Fix bad assignment to piglit_fragcolor. Noticed by Ilia. Also fix the type of func_type to match the functions. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> [v1] Cc: Dave Airlie <airlied@redhat.com>
2016-01-20arb_shader_subroutine: Compile a shader that calls a subroutine with a parameterIan Romanick1-0/+29
NOTE: This test segfaults on Mesa. v2: Fix bad assignment to piglit_fragcolor that would have cause the shader to not compile... if it didn't already segfault. Noticed by Ilia. Also fix the type of func_type to match the functions and make the test .frag (as originally intended). Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93722 Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> [v1] Cc: Dave Airlie <airlied@redhat.com> Cc: Nicolas Koch <nioko1337@googlemail.com>
2016-01-20arb_stencil_texturing: Verify that glBlitFramebuffer does not corrupt stateIan Romanick3-0/+321
I recently found (by inspection) that glBlitFramebuffer(GL_STENCIL_BUFFER_BIT) from a GL_READ_FRAMEBUFFER with a GL_TEXTURE_RECTANGLE target stencil texture would corrupt the GL_DEPTH_STENCIL_TEXTURE_MODE. NOTE: The GL_TEXTURE_RECTANGLE subtest fails on GEN8+. v2: Remove all mention of GL_TEXTURE_3D. Ilia pointed out that even GL_STENCIL_INDEX is never allowed for GL_TEXTURE_3D targets. GL_ARB_texture_stencil8 allows GL_STENCIL_INDEX8 with glTexImage3D only for the array-like texture targets. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2016-01-21arb_shader_image_load_store: fix location of storage qualifierTimothy Arceri1-1/+1
In GLSL 1.50 layout qualifiers must come before the storage qualifier. A recent fix in Mesa exposed this issue. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2016-01-20arb_shader_image_load_store: fix syntax error in execution testsTimothy Arceri19-29/+29
In GLSL 1.50 layout qualifiers must come before the storage qualifier. A recent fix in Mesa exposed this issue. V2: rename IMAGE_T -> IMAGE_UNIFORM_T, fix DST/SRC_IMAGE_T missed in V1 Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2016-01-20arb_enhanced_layouts: tests for duplicate layout identifiersTimothy Arceri6-0/+151
Test results: Nvidia GeForce 840M - NVIDIA 352.41 The results from the Nvidia binary are a little all over the place with these tests, most of the tests with arb_enhanced_layouts enabled fail but if the GLSL version is changed to 4.20 they pass. The only tests that pass with arb_enhanced_layouts enabled are the global tests but that seems to be because they do not detect the duplicates and fail the negative tests. Reviewed-by: Matt Turner <mattst88@gmail.com>
2016-01-18arb_enhanced_layouts: test linking block members for AoA with overlaping ↵Timothy Arceri1-0/+62
locations
2016-01-18arb_shader_storage_buffer_object: test GL_BUFFER_DATA_SIZE for arrays of arraysTimothy Arceri2-0/+72
2016-01-18arb_enhanced_layouts: fix offset link tests to work with GLSL 1.40Timothy Arceri2-2/+6
Cc: Emil Velikov <emil.l.velikov@gmail.com>
2016-01-18arb_enhanced_layouts: fix comments in component layout testTimothy Arceri1-2/+2
2016-01-18arb_enhanced_layouts: test offset is a multiple of base alignment for vec4Timothy Arceri2-0/+49
Cc: Emil Velikov <emil.l.velikov@gmail.com>