summaryrefslogtreecommitdiff
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-18framework: remove outdated commentNicolai Hähnle1-1/+0
TestrunResult.from_dict is indeed used at the end of the function. Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-18framework: fix a commentNicolai Hähnle1-2/+2
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-18framework: fix outdated commentNicolai Hähnle1-2/+1
Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-18framework: fix a commentNicolai Hähnle1-1/+1
See ReducedProcessMixin._run_command: if not self._is_cherry(): ... rerun path ... Reviewed-by: Eric Anholt <eric@anholt.net>
2017-10-18framework: fix typos in commentsNicolai Hähnle7-10/+10
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 basic remainder(float, float) builtin testsAaron Watry1-0/+13
Tested with libclc on a Radeon HD 7850. Hex output values were generated via remainderf(float, float). No implications as to the quality of the inputs is intended. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2017-10-11cl: Fix cospi return valueJan Vesely1-1/+1
cos(pi * 2k) = 1 Fixes cos test on beignet Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
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-03README: Make initial smoke tests steps internally consistentRhys Kidd1-2/+2
No other stage of the suggested initial sanity.py test or other tests uses a folder structure with *.results. Use a consistent naming approach throughout the initial README to make initial setup clearer. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-10-03README: Correct typo deQP -> dEQPRhys Kidd1-3/+3
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-10-03README: Update the list of test profilesRhys Kidd1-0/+27
v3 (Rhys Kidd): Fix typo with cts_gles.py v2 (Dylan Baker): Do not document es3conform.py, as it is for a very old version of the Khronos CTS and should be deleted. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Tobias Klausmann <tobias.johannes.klausmann@mni.thm.de>
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-26framework: fix proces/process_isolation typoBrian Paul1-1/+1
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
2017-09-26framework: fix comment typos on FastSkip classBrian Paul1-4/+4
Reviewed-by: Charmaine Lee <charmainel@vmware.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 failing case to exp testTom Stellard1-2/+2
Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
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 shuffle2 builtinsJan Vesely2-0/+148
v2: fixup python style(six.iteritems, itertools.product, enumerate, ...) Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-09-08cl: Add generator for shuffle builtinsJan Vesely3-0/+145
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>