summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
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-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-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>
2015-10-04arb_shader_atomic_counters: add error output if uniform not foundTimothy Arceri1-2/+5
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2015-10-03arb_shader_atomic_counters/max-counters: Run the combined atomic buffer test ↵Francisco Jerez1-10/+12
in more cases. The subtest with at most the maximum number of atomic counter buffers can be run whenever the combined limit is at least one more than the limit for the FS stage. The subtest exceeding the maximum number of combined atomic counter buffers can be run whenever the sum of the limits for the VS and FS stages is greater than the combined limit. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
2015-10-03arb_shader_atomic_counters/max-counters: Use different atomic counter ↵Francisco Jerez1-1/+1
offsets in the VS of the combined test. It is illegal for different atomic counter uniform declarations to overlap, even across stages, use different offsets in the VS to avoid that. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
2015-10-03arb_shader_atomic_counters/max-counters: Init uint variable with unsigned ↵Francisco Jerez1-2/+2
literal. This subtest was probably only tested on nVidia and this happened to work by luck. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
2015-10-03arb_shader_atomic_counters: Make atomic_counters_generate_source local to ↵Francisco Jerez3-60/+57
max-counters. This isn't used anywhere except for the max-counters test so we can move the definition into the C file of that test and make it static. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
2015-10-03arb_direct_state_access-texunits: fix incorrect error testBrian Paul1-4/+6
Check for GL_INVALID_VALUE, not GL_INVALID_OPERATION. The extension spec isn't clear on this, but GL_INVALID_VALUE is typically generated for out-of-range int/uint values. That's what NVIDIA does. Plus, that's what the other bind-texture-unit piglit test checks for at line 91. Let's at least be consistent. Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
2015-10-03arb_gpu_shader_fp64: expand getuniform double coverageDave Airlie1-6/+86
After looking at CTS I realised we have to accept all types for get uniform for double conversion, and we should do double conversion on the non-double types. I assume this is due to it being the only interface to check if the location has a value or something. This adds getting non-double values with GetUniformdv, and getting double values with float/int/uint interfaces. notes: currently mesa fails this. Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-10-02arb_shader_storage_buffer_object: invalid binding qualifier testTapani Pälli1-0/+22
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
2015-10-01tess/fp64: add some basic cross over testsDave Airlie3-0/+258
CTS tests this a lot better than piglit, but this is a good place to start, I've got a bunch of fixes queued for mesa to address some of these problems. This adds 3 tests: simple double vs->tcs->tes->fs simple dvec2 vs->tcs->tes->fs simple double[2] vs->tcs->tes->fs Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-10-01arb_shader_subroutine: add a vertex shader testDave Airlie1-0/+52
This tests vertex shaders work with shader subroutine. Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au> Signed-off-by: Dave Airlie <airlied@redhat.com>
2015-09-30arb_compute_shader: A simple CS test with SSBOJordan Justen1-0/+74
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-09-30shader_runner: Add SSBO buffer initialization commandJordan Justen1-0/+8
The command is: ssbo <size> where <size> is the size in bytes to allocate for the SSBO buffer. This command only sets of a buffer for SSBO index 0. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2015-09-30cl: fix get-kernel-arg-info indentationSerge Martin1-208/+208
2015-09-30cl: add clEnqueueFillImageSerge Martin3-0/+336
2015-09-30cl: add clEnqueueMigrateMemObjectsSerge Martin3-0/+246
v2: (Jan Vesely comments) Remove extra whitespace Single flag test cases Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-09-29fbo-depth-sample-compare: Eliminate dependency on gluSphereIan Romanick2-17/+129
v2: Fix typo in comment noticed by Matt. When interpolating from the north pole to the south pole of the sphere, correctly interpolate from 0 to pi instead of 0 to 2pi. See the "NOTE" in the code. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29fbo-depth-sample-compare: Use piglit_draw_rect_texIan Romanick1-10/+1
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29fbo-depth-sample-compare: Use piglit_build_simple_programIan Romanick1-9/+3
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29glean: Remove dependency on libGLUIan Romanick2-4/+0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29glean: Just use glTexImage2D in ttexgenIan Romanick1-1/+3
The test sets the filter modes to GL_NEAREST, so levels other than zero are never used. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29glean: Remove unused method Image::makeMipmapsIan Romanick2-16/+0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29glean: Replace gluOrtho2D with plain glOrthoIan Romanick1-1/+1
Why was gluOrtho2D ever even a function?!? Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29glean: Replace gluErrorString with piglit_get_gl_error_nameIan Romanick5-12/+16
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29polygon-offset: Replace gluProject to remove the dependency on libGLUIan Romanick2-16/+62
I verified correctness by calling gluProject inside project and comparing the results. My initial implementation forgot to do the perspective divide, so this helped catch that bug. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29polygon-offset: Small bit of output refactoringIan Romanick1-11/+6
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>
2015-09-29polygon-offset: Remove a layer of tabsIan Romanick1-16/+16
I think this was a holdover from having originated in glean. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Thanked-by: Kristian Høgsberg <krh@bitplanet.net>