summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2017-10-18shader_runner: don't use glMapNamedBufferRangeHEADmasterNicolai Hähnle1-5/+6
We want to be able to run atomic counter tests even when the DSA entry points are unavailable (e.g. in GLES). Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-18tests/deqp: remove redundant constructorsNicolai Hähnle2-7/+0
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-12cl: Add tests for load hi16 instructionsMatt Arsenault2-0/+376
v2: Fix some formatting Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-12cl: Add tests for store hi16 instructionsMatt Arsenault2-0/+185
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-12glx: Rerun failing tests in auto mode if there is a pending expose eventThomas Hellstrom1-0/+14
Tests that check frontbuffer contents after drawing may fail because the X server touch the front contents between drawing and reading. In those cases, there's typically a pending expose event. So check for that situation and rerun the test. This fixes sporadic failures with glx-swap-copy when run with a compositor and a swap-interval of zero. It would also have fixed gl-1.0@swapbuffers-behavior, but a workaround (at least for dri3) was pushed in "df56af2b" (gl-1.0/swapbuffers-behavior: Try avoid reading from real front v2), but that test-specific workaround could be reverted after this commit. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt: <eric@anholt.net>
2017-10-11cl: Improve link program testsJan Vesely1-6/+6
f() is deprecated unprototyped declaration use f(void) instead. Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-11cl: Add tests for clc-1.0 integer atomicsJan Vesely33-0/+2211
Passes on intel beignet, intel CPU, CUDA OpenCL, clover(carrizo) Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-11arb_sample_shading: uint -> GLuint.Jose Fonseca1-1/+1
2017-10-11arb_query_buffer_object: add additional coherency testsNicolai Hähnle3-0/+443
The existing tests only test that shaders receive the query result. The new tests also check for earlier pipeline stages.
2017-10-11arb_query_buffer_object: extract some common code for running queriesNicolai Hähnle4-129/+240
2017-10-11arb_sample_shading: run more tests concurrentlyNicolai Hähnle1-4/+2
There doesn't seem to be a reason for not running those tests concurrently. Looks like they were just missed.
2017-10-11arb_sample_shading: add more extensive gl_SampleMask(In) testsNicolai Hähnle3-0/+457
Test the interaction of gl_SampleMask and gl_SampleMaskIn with different sample shading rates. It used to fail on radeonsi.
2017-10-11arb_enhanced_layouts: test packing of floats in the same slots as an arrayTimothy Arceri1-0/+93
This test causes an assert to be thrown on i965 currently.
2017-10-11arrays_of_arrays/atomic_counter: check counters limit on linker test.Dave Airlie1-0/+2
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-10-11arrays_of_arrays/atomic_counters: set requirements on atomic counter numbers.Dave Airlie2-0/+2
These both use 20 counters so check against the limits before running. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-10-11arb_shader_atomic_counter_ops: declare counters to fix undefined behaviour.Dave Airlie1-0/+1
It's undefined (including crashing) behaviour to use atomic counters without having bound enough storage for them. This fixes this test to bind the storage for the counters it uses. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2017-10-06cl: Add tests for mad mixMatt Arsenault1-0/+283
gfx9 added v_mad_mix_f32, v_mad_mixlo_f16, and v_mad_mixhi_f16 instructions. Make sure the conversion to/from f16 is folded into this instruction and it works. These aren't great since they need more test values, and generating half results is kind of a pain from any other tool. The perfect values used don't really stress the conversions, but this as at least enough to make sure the encoding is correct. v2: Fix backslash alignments Reviewed-by: Jan Veselu <jan.vesely@rutgers.edu>
2017-10-06ext_occlusion_query_boolean: basic API testTapani Pälli4-0/+129
v2: add enum test for GL_QUERY_COUNTER_BITS_ARB Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
2017-10-04cl: Fix incorrect indentationJan Vesely1-13/+13
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-04cl: Don't use unsigned long longJan Vesely1-1/+1
clc allows max long type Fixes program@execute@calls on CUDA OpenCL Fixes: e408ce1f2bff23121670a8206258c80bb3d9befd (cl: Add tests for function calls) Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-03fbo-viewport: fix false error caused by slight rounding differencesNicolai Hähnle1-26/+11
This test compares rendering to the window system framebuffer with rendering to an FBO, and it does so by rendering rotated quads. There can be slight differences in rounding if the Y axis is flipped between those buffers causing rendering differences which are permitted by GL. Change the test to render axis-aligned quads in each viewport instead. This should still catch any error with flipped Ys, and there are no rounding issues since pixels are fully covered by quads. Reviewed-by: Brian Paul <brianp@vmware.com>
2017-09-29arb_gpu_shader_fp64: relax ldexp test due to denormsNicolai Hähnle1-6/+2
ldexp(0.5, -1028) will be different from 0.0 on implementations that support denorms. Simply crank up the exponents to exclude the possibility of denorms.
2017-09-27cl: Add tests for 64 bit integer atomicsJan Vesely33-0/+2211
v2: Fix xor local test Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-09-27image_load_store: add a new test for a bug seen on AMD VEGA.Dave Airlie1-0/+67
This is ported from a vulkan cts test showing the same brokenness. Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2017-09-26arb_arrays_of_arrays: remove an unused variableNicolai Hähnle1-1/+0
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-09-26glsl-1.10: add some loop unrolling tests with breaks in else branchTimothy Arceri2-0/+112
Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
2017-09-20cl: Add tests for function callsMatt Arsenault5-0/+1235
Passes on ROCm, I haven't tried clover recently. Last time I did it errored because the AsmParser wasn't properly initialized. v2: Fix non-unique test names, Wrap noinline in unguarded macro, use prettier test names, use device_regex (effectively restricting to ROCm) Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-09-20arb_texture_query_lod: add tolerance for some comparisonsRoland Scheidegger2-2/+6
Tolerance was added for the tests a while ago, but it looks like it was forgotten for the nearest_biased test (the nearest one has it). Also, for the linear test, add tolerance too when comparing x and y lodq results - the values should probably be the same mostly, however it's possible (due to interpolation inaccuracies) to get values just below 0 or above 3, in which case they will get clamped. (Could just do a clamp instead of allowing tolerance I suppose, but some tolerance might be allowed in any case there too.) This is required for llvmpipe (with a in-progress change) to pass. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-09-18cl: Fix device_regex featureMatt Arsenault1-1/+1
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-09-18Add KHR-GL46 to khr_gl.pyKenneth Graunke1-0/+2
Following the pattern, if there ever were a OpenGL 4.6 CTS, it would probably have tests named like this. Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-09-18Fix bogus .50. number in and-clamp.shader_testKenneth Graunke1-3/+3
Trivial. ".50." is clearly a typo, it should have been ".50" This fixes test failures in some environments. Tested-by: Mark Janes <mark.a.janes@intel.com>
2017-09-08cl: Add generator for shuffle builtinsJan Vesely1-0/+3
v2: "The size of each element in the mask must match the size of each element in the result." v3: fixup python style (six. iteritems, enumerate, itertools.product, ...) Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-08-29arb_separate_shader_objects: Check piglit_link_check_status results.Vinson Lee1-4/+6
Fix Coverity unchecked return value defects. CID: 743618 Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-08-29cl: Fix error message value.Jan Vesely1-1/+1
Fixes: f6d4e22d8b8eef1fbf5c7a234f520ae013a3e0d5 ("cl: Add support for OCL 2.0") Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Tested-by: Vinson Lee <vlee@freedesktop.org>
2017-08-28glx-multithread-clearbuffer: Check pthread_join return value.Vinson Lee1-3/+6
Fix Coverity unchecked return value defect. CID: 1415101 Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-08-28textureGather: correct expected result for ↵Neha Bhende1-19/+31
GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 1 Expected results were with respect to GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 4. This patch fixes it for GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 1 as well. Reviewed-by: Brian Paul <brianp@vmware.com>
2017-08-28draw-pixels: fix KHR_no_error logicTimothy Arceri1-2/+4
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2017-08-25arb_tessellation_shader/{1,16}in-1out: use colors to detect corruption easilyMarek Olšák2-18/+37
Color everything so that it appears like 4 horizontal stripes (black, red, yellow, white) to make sure everything is where it should be.
2017-08-25arb_tessellation_shader: new tests for a radeonsi bugMarek Olšák2-0/+148
2017-08-25arb_shader_storage_buffer_object: don't do out-of-bounds writesSamuel Iglesias Gonsálvez2-4/+8
From GLGL 4.5 spec, 5.11 "Out-of-Bounds Accesses": "In the subsections described above for array, vector, matrix and structure accesses, any out-of-bounds access produced undefined behavior. However, if robust buffer access is enabled via the OpenGL API, such accesses will be bound within the memory extent of the active program." These tests perform writes to an unsized array, however some of these writes can be out-of-bounds and the result is undefined. As the tests are focused on in-bound access and they don't enable robust buffer access, then this patch removes the out-of-bounds writes because we cannot assume they will be ignored. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Arthur Huillet <ahuillet@nvidia.com>
2017-08-24cl: Replace handwritten vload tests with a generatorJan Vesely5-449/+2
v2: simplify mark local storage volatile v3: python style Passes on beignet(IVB), clover(carrizo, iceland), and intel CPU Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-08-23gl-2.0-vertex-attr-0: new test of glVertexAttrib(index=0)Brian Paul3-0/+118
See bugzilla https://bugs.freedesktop.org/show_bug.cgi?id=101941 Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-08-23gl-2.0-vertex-const-attr: test attribute declaration orderBrian Paul1-28/+60
We found that if we swapped the order of the "vertex" and "attr" attributes in the VS that the test would fail with Mesa (but not NVIDIA). This patch updates the program to test both declaration orders. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101941 Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-08-23glean: remove pointless switch statements from fbo testBrian Paul1-44/+18
All switch cases did the same thing. Spotted by Eric Anholt. Reviewed-by: Eric Anholt <eric@anholt.net>
2017-08-22general: add missing KHR_no_error statusSamuel Pitoiset8-14/+34
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gl-4.5: set KHR_no_error statusSamuel Pitoiset3-0/+6
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gl-3.3: set KHR_no_error statusSamuel Pitoiset1-0/+1
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gl-3.2: set KHR_no_error statusSamuel Pitoiset14-4/+22
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gl-3.1: set KHR_no_error statusSamuel Pitoiset9-6/+19
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
2017-08-22gl-3.0: set KHR_no_error statusSamuel Pitoiset19-14/+37
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>