summaryrefslogtreecommitdiff
path: root/tests/all.py
AgeCommit message (Collapse)AuthorFilesLines
2018-05-01tests: use meta profilesDylan Baker1-5011/+0
This is a rather sizeable commit, I'm sorry for that. Basically there was no clean way I could come up with to make the change from a single python file to multiple xml files. The reason we want this is to to avoid duplication amongst profiles (and very long build times), by allowing a single profile to be included in multiple other profiles. This means that the all profile is now composed of the "glslparser", "shader", and "opengl" (everything in all that's not glslparser, asmparser, or shader tests). Running `piglit run all foo` still produces the same results. This also allows us to mix native and non-native tests so that traditional targets like quick_cl still work. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework/test: make BuiltInConstantTest files relativeDylan Baker1-13/+13
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01tests/all: Make asmparser tests path relativeDylan Baker1-1/+2
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework/test: use relative paths for GLSLParser testsDylan Baker1-2/+2
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework/test: Make shader paths relativeDylan Baker1-2/+5
Because they need to be relative at build time for serialization. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework/test: Split multishader tooDylan Baker1-1/+1
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework: do the same for shader testDylan Baker1-2/+2
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework: use a class method for building test via parsingDylan Baker1-1/+1
Since the serialized tests wont need this path, build a generic constructor that this special constructor can leverage. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01tests: use BuiltInConstantsClassDylan Baker1-28/+27
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-05-01framework: Use custom class for ASM parser testsDylan Baker1-2/+4
This is going to make serialization easier, since asmparser tests take a file argument, which must be relative at build time, but absolute at run time. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
2018-04-30ext_texture_norm16-render: test for GL_EXT_texture_norm16Tapani Pälli1-0/+5
Test includes: - texture uploads - mipmap generation - framebuffer creation - rendering to - reading from - interaction with GL_EXT_copy_image - interaction with GL_OES_texture_buffer v2: code cleanup v3: add a subtest for TBOs v4: more code cleanup! Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2018-04-06tests: fix INTEL_blackhole_render test namesLionel Landwerlin1-4/+4
Fixes: c8d89e733c52a6 ("tests: add INTEL_blackhole_render") Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-04-05arb_framebuffer_srgb/blit: Add source fill modesNanley Chery1-5/+7
Test how blits behave when the source is cleared. This case is of interest to Intel GPUs, which will fast-clear the source.
2018-03-16AMD_performance_monitor: add VC4 specific testsBoris Brezillon1-0/+1
This adds a specific test for the VC4 GPU. Right now, it only checks that FEP-valid-quads and QPU-total-clk-cycles-waiting-TMU are consistent after executing well known operations (draw a rectangle or a texture). More tests will be added over time. v2: Add to all.py, actually skip when the counter isn't present (by anholt) Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-03-16tests: add INTEL_blackhole_renderLionel Landwerlin1-0/+9
v2: Drop OPENGL_gl_LIBRARY from linked libraries (Alejandro) Add asserts to verify glIsEnabled() returns the right value (Lionel) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
2018-03-12gl-3.0: Basic tests of glTexParameterIiv and friendsIan Romanick1-0/+1
Some GCC compiler warnings led me to find some bugs in Mesa's implementation of glGetTexParameterIuiv. I then discovered that piglit had zero tests for any of these functions. This test currently fails on Mesa. v2: Replace piglit_require_gl_version(30) with 'config.supports_gl_compat_version = 10'. Suggested by Brian. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2018-03-02egl: API test for EGL_ANDROID_blob_cache extensionTapani Pälli1-0/+1
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2018-02-14gl-4.3-get_glsl_versions: new tests of GL_NUM_SHADING_LANGUAGE_VERSIONSBrian Paul1-0/+5
and glGetStringi(GL_SHADING_LANGUAGE_VERSION, i) queries in GL 4.3. Until recently, these queries were not implemented in Mesa. Tested-by: Andriy.Khulap <andriy.khulap@globallogic.com>
2018-02-14gl-2.0-shader-materials: test vertex shader with material attributesBrian Paul1-0/+1
Both with and without display lists.
2018-02-14gl-1.1-color-material-array: test GL_COLOR_MATERIAL with vertex color arrayBrian Paul1-0/+1
Both with and without display lists.
2018-02-14gl-1.1-draw-arrays-start: exercise glDrawArrays with non-zero 'start'Brian Paul1-0/+1
Both with and without display lists.
2018-02-07shader_draw_parameters: Also test using an indirect drawNeil Roberts1-4/+6
The test can now take an extra argument ‘indirect’ which will cause it to emit the draw calls via an indirect buffer. This is useful to test at least on i965 because emitting the gl_BaseVertex takes a different path in that case. Reviewed-by: Antia Puentes <apuentes@igalia.com>
2018-02-02all.py: fix extension/version testing when wflinfo failsBrian Paul1-4/+11
If wflinfo is not installed or fails, the wfl_info.gl_extensions value will be the empty set. Similarly, the gl_version, glsl_version, etc. will be None. In those cases, return True from the gl_extension_supported() and is_feature_directory_supported() functions so that we don't skip any subdirs. This is only relevant when PIGLIT_FILTER_DIRECTORIES is set. Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-01-30ext_memory_object_fd: add api error testsAndres Rodriguez1-0/+6
The spec doesn't define any errors for ext_memory_object_fd, but do at least a basic sanity test. Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
2018-01-30ext_semaphore_fd: add api error testsAndres Rodriguez1-0/+6
The spec doesn't define any errors for ext_semaphore_fd, but do at least a basic sanity test. Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
2018-01-30ext_semaphore: add basic api error checkingAndres Rodriguez1-0/+6
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
2018-01-18gl-1.0-dlist-materials: new test of materials in display listsBrian Paul1-0/+1
This exercises two code paths in Mesa's display list VBO code. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2018-01-16arb_texture_barrier add test texture-halves-ping-pong-operation-chainFabian Bieler1-0/+1
From the GL_ARB_texture_barrier spec: "Specifically, the values of rendered fragments are undefined if any shader stage fetches texels and the same texels are written via fragment shader outputs, even if the reads and writes are not in the same Draw call, unless any of the following exceptions apply: - The reads and writes are from/to disjoint sets of texels (after accounting for texture filtering rules). - There is only a single read and write of each texel, and the read is in the fragment shader invocation that writes the same texel (e.g. using "texelFetch2D(sampler, ivec2(gl_FragCoord.xy), 0);"). - If a texel has been written, then in order to safely read the result a texel fetch must be in a subsequent Draw separated by the command void TextureBarrier(void); TextureBarrier() will guarantee that writes have completed and caches have been invalidated before subsequent Draws are executed." Previously the only Piglit test for ARB_texture_barrier tested point 2 of that statement. This test aims to test point 1. It uses an uint texture bound as the colorbuffer and texture sampler source. It renders 6 passes. Every pass one half of the texture is sampled from while the other is written to. Which is which is swapped every pass. The operations in the passes are chosen so that the end result will differ if any pass is missing or the passes aren't executed in the correct order. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-16gles3: Test transform-feedback to uniform-buffer-objectFabian Bieler1-0/+1
Some tiling renderers reorder draw-calls for performance reasons. This could interfere with the integrity of resources written to by draws calls and read from by subsequent draw calls. This test uses a buffer object, written by transform feedback and read as a uniform buffer object. With blending enabled, draw 3 identical passes: Each pass consists of two sub-passes: First sub-pass: Draw a grid of 8x8 transparent quads (each 32x32 pixels in size). Write the index of the current pass with transform feedback in a buffer object. Second sub-pass: Draw another grid of 8x8 quads. If the buffer object contains the index of the current pass output transparent, white otherwise. Check that the framebuffer is unaltered. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-16gl 1.0: Stress test GL_LINE_LOOP.Fabian Bieler1-0/+1
Draw circles with long line loops and check the result. In particular, check that the last line segment is drawn and that no additional segments in between arbitrary vertices are drawn. V2: Increase vertex size and count to exhaust Mesa's vbo buffer and Gallium's auxiliary draw buffer. Add command line argument to set vertex count. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-16Add test for all user defined clip planesFabian Bieler1-0/+1
Previously the only fixed function user defined clip plane test used only one clip plane and no coordinate transformation. This new test uses all clip planes and a non-identity coordinate transformation matrix. The test works as follows: Arrange all clip planes perpendicular to the x-y-plane with equal angles between them and a distance of 0.5 to the origin. The user defined clip space should thus be a n-prism of infinite height centered around the z-axis where n is GL_MAX_CLIP_PLANES. Draw a quad filling the screen. The resulting render should be an n-sided regular polygon. Test color on either side of each edge of the polygon. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-01-12arb_texture_multisample: stress test of very large textures (v3)Brian Paul1-0/+8
Create the largest possible 2D GL_RGBA_32F multisampled texture, load it with known values the read it back and see if the values match up. The --array option runs the test with a 2D texture array instead of an MSAA texture. There are other options to specify texture size, number of samples, fp16 and a texel value scale. Fails with NVIDIA's driver. See code comments. Note: The entry in all.py limits the texture size to 512x512 so it runs in a reasonable amount of time. Ideally, the texture size should be set in quick.py instead but I've been unable to make that work. v2: * Fix a few code issues raised by Fabian Bieler, fix all.py, quick.py code. * Update comments about NVIDIA driver, per Roland. v3: * remove config.khr_no_error_support line. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2018-01-11arb_texture_buffer_object/indexed: test indexed samplers with tboRoland Scheidegger1-0/+1
This just verifies that sampler arrays indexed with a uniform work with TBOs. (Broken on r600 evergreen pending a fix.) v2: fix compiler warnings, directly assign index uniform in shader Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2018-01-04textureSize: add ability to test tess eval stageRoland Scheidegger1-4/+9
This is a problem of all texturing tests, they cannot exercise the tesselation stages. (But I'm too lazy to fix the others, and too lazy to hack something up for tcs stage, I only need it to verify a bug/fix with r600 buffer textures.) v2: add to all.py so it is actually run (all in all there's about 40 addtional tests run) Reviewed-by: Fabian Bieler <fabianbieler@fastmail.fm>
2018-01-03Remove old ATI_fs testMiklós Máté1-1/+0
It's a subset of spec/ati_fragment_shader/api-gen Signed-off-by: Miklós Máté <mtmkls@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-01-03ATI_fs: add some api testsMiklós Máté1-0/+2
v2: don't exit on first failure, add license headers, drop redundant error checks, add build system integration, add tests to all.py Signed-off-by: Miklós Máté <mtmkls@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-01-03ATI_fs: add render testsMiklós Máté1-0/+7
These mainly check the state machine. Compiler checks will come later. v2: don't exit on first failure, improve some tests, add license headers, drop redundant error checks, add build system integration, add tests to all.py v3: enums instead of magic numbers, style cleanups (by anholt, acked by Miklós). Signed-off-by: Miklós Máté <mtmkls@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2018-01-03ATI_fs: add api error testsMiklós Máté1-0/+14
One for each paragraph in the Errors section of the spec. v2: don't exit on first failure, improve some tests, move spec quotes to top, add license headers, drop redundant error checks, add build system integration, add tests to all.py Signed-off-by: Miklós Máté <mtmkls@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net>
2017-12-23Move vbo-buffer-unmap test from bugs to spec dir.Fabian Bieler1-1/+1
Moved from opengl 1.1 to opengl 1.0 profile in all.py. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move tri-tex-crash test from bugs to spec dir.Fabian Bieler1-1/+1
Moved from opengl 1.1 to opengl 1.0 profile in all.py. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo31934 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "map-empty". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo28551 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "get-attachment-parameter-default-framebuffer". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo25614-genmipmap test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "rgba-mipmap-texture-with-rgb-visual". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo24066 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "get-limits-without-fp". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo23670-drawpix_stencil from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "drawpixels-stencil-test". Moved from opengl 1.1 to opengl 1.0 profile in all.py. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo23670-depth_test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "drawpixels-depth-test". Moved from opengl 1.1 to opengl 1.0 profile in all.py. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo23489 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "empty-begin-end-clause". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo22740 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "map-after-draw". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move point-sprite test from bugs to spec dir.Fabian Bieler1-1/+1
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2017-12-23Move fdo20701 test from bugs to spec dir.Fabian Bieler1-1/+1
Now it's called "border-texture-finish". Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Brian Paul <brianp@vmware.com>