summaryrefslogtreecommitdiff
path: root/tests/cl
AgeCommit message (Collapse)AuthorFilesLines
2015-09-29Remove unnecessary linking with libGLUIan Romanick1-1/+0
This patch was created by: sed -i -e '/[{]OPENGL_glu_LIBRARY[}]/d' $(grep -lr OPENGL_glu_LIBRARY) git checkout tests/glean/CMakeLists.gl.txt git checkout tests/spec/gl-1.4/CMakeLists.gl.txt git checkout tests/fbo/CMakeLists.gl.txt So, there are three places out of all of piglit that actually need this library. 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-15cl: check values returned from clGetMemObjectInfoSerge Martin1-39/+246
v2: (Jan Vesely comments) fix grammar if-def clReleaseMemObject(memobj[2]) test() return a status use subtests Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-08-29cl-api-get-kernel-work-group-info: Fix memory leak.Vinson Lee1-0/+1
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Serge Martin (EdB) <edb+piglit@sigluy.net>
2015-08-21cl: fix invalid platform test in create-contextSerge Martin (EdB)1-15/+1
OpenCL objects are just pointers in the end, using random pointer value is likely to make an application crash. Also, all others tests use NULL as an invalid object. See also Francisco Jerez comments: http://lists.freedesktop.org/archives/mesa-dev/2014-November/070520.html http://lists.freedesktop.org/archives/mesa-dev/2013-October/046830.html Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-08-15cl: add clEnqueueFillBuffer testSerge Martin (EdB)2-0/+271
v2: spaces/tabs formating clReleaseMemObject the buffer Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-08-15cl: fix CL_KERNEL_GLOBAL_WORK_SIZE querySerge Martin (EdB)1-2/+16
this query is only valid for a custom device or a build-in kernel Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-08-15cl: add clGetKernelArgInfo testSerge Martin (EdB)2-0/+275
v2: add the test to cl.py (Jan Vesely) add checks on returned values (Jan Vesely) disable CL_KERNEL_ARG_INFO_NOT_AVAILABLE test v3: fix compilation without 1.2 headers (Jan Vesely) keep testing CL_KERNEL_ARG_INFO_NOT_AVAILABLE (Jan Vesely) Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-08-01cl: add clLinkProgram testEdB2-0/+395
v2: Use piglit_cl_get_program_build_info instead of piglit_cl_get_program_info, I was expected it to fail so I didn't paid attention. Remove "-invalid- --link-- options" on CL_INVALID_OPERATION test. v3: Add to cl.py Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-07-08cl/api: Avoid deprecated declarations warnings.Jose Fonseca2-0/+4
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-05-19cl: only build interop tests if GLES2 is enabledMarek Olšák1-2/+2
Reviewed-by: EdB <edb@sigluy.net>
2015-05-06EGL_KHR_cl_event2: new OpenCL+EGL interop test for the extensionMarek Olšák4-0/+478
2015-03-03cl-program-tester: Avoid void pointer arithmetic.Jose Fonseca1-1/+1
Although CL tests are not built with MSVC, this is the single instance of void pointer arithmetic in them, so updating it to not use void pointer arithmetic will enable us to use -Werror=pointer-arith option universally in a follow on change. Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-02-24Revert "cl tests: move non-generated tests out of the generated tests dir"Dylan Baker2-35/+0
This reverts commit ff8898df3c78324b2d8945c855a9d2e0034f5525. This broke cl tests, and it's a very trivial self contained patch, so we'll just revert it. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> reported-by: Michel Dänzer <michel@daenzer.net>
2015-02-23cl tests: move non-generated tests out of the generated tests dirDylan Baker2-0/+35
It really doesn't make sense to have static tests in the generated tests directory, this patch adds them to the tests directory and adds the appropriate code to cl.py for this change Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2015-02-20cl: Don't use variable length arrayJan Vesely1-3/+5
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2015-02-12cl-api-create-sampler: Fix memory leak.Vinson Lee1-0/+1
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-02-06cl: Fix tolerance for division in scalar arithmetic testJan Vesely1-7/+7
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2015-02-05cl: fix clCompileProgram compil error with CL1.1EdB1-0/+6
This fix https://bugs.freedesktop.org/show_bug.cgi?id=86361 Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-01-26cl: Fix tolerance for SP divisionJan Vesely1-3/+3
The specs say 2.5 ulp, but we only take integer values Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2015-01-23cl-api-create-sampler: Fix memory leak.Vinson Lee1-0/+1
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2014-12-17cl-api-create-image: Fix memory leak.Vinson Lee1-0/+3
Fix Coverity "resource leak" defect. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-12-14cl-api-get-device-info: Fix memory leak.Vinson Lee1-0/+2
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-12-14cl-api-enqueue-map-buffer: Initialize variable.Vinson Lee1-1/+1
Fix uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-12-11cl: Fix signed/unsigned comparison warningsJan Vesely1-8/+8
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2014-12-03cl-api-compile-program: Initialize variable.Vinson Lee1-1/+1
This patch silences Clang sometimes-uninitialized warnings. compile-program.c:312:6: warning: variable 'kernel' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile-program.c:332:18: note: uninitialized use occurs here clReleaseKernel(kernel); ^~~~~~ compile-program.c:312:3: note: remove the 'if' if its condition is always false if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile-program.c:302:5: warning: variable 'kernel' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile-program.c:332:18: note: uninitialized use occurs here clReleaseKernel(kernel); ^~~~~~ compile-program.c:302:2: note: remove the 'if' if its condition is always false if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compile-program.c:114:18: note: initialize the variable 'kernel' to silence this warning cl_kernel kernel; ^ = NULL Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: EdB <edb+piglit@sigluy.net> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-11-14cl: split CL10/CL11+ optimization options testingEdB2-0/+13
because -cl-strict-aliasing options argument to clBuildProgram is no longer supported in OpenCL 1.1.
2014-11-14cl: add CL_MEM_HOST_* releated testsEdB2-2/+158
2014-11-14cl: fix test nameEdB1-1/+1
2014-11-14cl: fix doxygen filenameEdB1-2/+2
2014-11-14cl: add tests for clCompileProgramEdB2-0/+367
v2: Use clBuildProgram to create to program to attach kernel to
2014-11-07cl: fix clGetKernelWorkGroupInfoEdB1-7/+21
If there is only one device associed with the kernel and device arg is NULL you don't have to trigger CL_INVALID_DEVICE v2: Test for CL_SUCCESS instead of disabling it (Jan Vesely) Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-11-06cl: Add test for clCreateProgramWithBinary() v3Tom Stellard2-0/+225
v2: - Fix filename in doxygen comments - Remove redundant binary status check. v3: - Add test cases for passing binary programs to clBuildProgram() and clCompileProgram(). Reviewed-by: Francisco Jerez <currojerez@riseup.net>
2014-10-29cl: Add atomix_xor global testsAaron Watry2-0/+125
Tests both usage and non-usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_or global testsAaron Watry2-0/+125
Tests both usage of and no usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_min global testsAaron Watry2-0/+121
Tests for both usage-of and non-usage-of the return value Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_max global testsAaron Watry2-0/+121
Tests both usage of return and no usage of return. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_and global testsAaron Watry2-0/+125
Tests both usage of return and no usage of return variants. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_dec global testsAaron Watry2-0/+120
Tests both usage and non-usage of return value. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_inc global testsAaron Watry2-0/+120
Tests both usage of return values and no usage in separate files. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-10-29cl: Add atomic_sub global testsAaron Watry2-0/+121
Tests both usage of return value and no-return-usage variants. Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-26CL: Add atomic_add global testsAaron Watry2-0/+121
Adds two separate files, one which tests atomic_add without usage of the return values, and another which tests with return usage. At least the Radeon HD (EG/SI) line has two separate sets of instructions depending on whether the return value is used or not. v2: Only use return variant for atomic_add-global-return Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2014-09-25cl: i32-stack-array: Rename to avoid subtest conflictsJan Vesely1-10/+10
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl: vXi32-stack: Rename to avoid subtest name conflictsJan Vesely3-6/+6
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl: Fix name of bitwise int subtestJan Vesely1-1/+1
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl: Fix subtest names in scalar-comparisonJan Vesely4-4/+4
These use lte kernels Also fixes duplicate subtest names Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl: Avoid duplicate subtest namesJan Vesely1-2/+2
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl/atomic: Fix duplicate names for threaded int/uint testsAaron Watry11-22/+22
Signed-off-by: Aaron Watry <awatry@gmail.com> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>
2014-09-25cl: Add tests for additional atomic functionsAaron Watry6-0/+470
Signed-off-by: Aaron Watry <awatry@gmail.com>
2014-09-25cl: Add atomic_max testsAaron Watry1-0/+81
v2: Properly test signed/unsigned values Signed-off-by: Aaron Watry <awatry@gmail.com>
2014-09-06cl-program-tester: Add NORETURN attribute to exit_report_result.Vinson Lee1-1/+1
Fix clang sometimes-uninitialized warning. program-tester.c:1523:12: warning: variable 'main_argument_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] } else if(regex_match(main_argument, "\\.bin$")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ program-tester.c:1542:9: note: uninitialized use occurs here switch(main_argument_type) { ^~~~~~~~~~~~~~~~~~ program-tester.c:1523:9: note: remove the 'if' if its condition is always true } else if(regex_match(main_argument, "\\.bin$")) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ program-tester.c:1455:2: note: variable 'main_argument_type' is declared here enum main_argument_type_t { ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jan Vesely <jan.vesely@rutgers.edu>