Manual-sync mirror of chromium.googlesource.com/external/github.com/KhronosGroup/OpenCL-CTS
Find a file
Nikhil Joshi bfca863cb8
Handle NULL hostptr in conformance image tests (#1087)
* Fix enqueue_flags test to use correct barrier type.

Currently, enqueue_flags test uses CLK_LOCAL_MEM_FENCE.
Use CLK_GLOBAL_MEM_FENCE instead as all threads across work-groups
need to wait here.

* Add check for support for Read-Wrie images

Read-Write images have required OpenCL 2.x.
Read-Write image tests are already being skipped
for 1.x devices.
With OpenCL 3.0, read-write images being optional,
the tests should be run or skipped
depending on the implementation support.

Add a check to decide if Read-Write images are
supported or required to be supported depending
on OpenCL version and decide if the tests should
be run on skipped.

Fixes issue #894

* Fix formatting in case of Read-Write image checks.

Fix formatting in case of Read-write image checks.
Also, combine two ifs into one in case of
kerne_read_write tests

* Fix some more formatting for RW-image checks

Remove unnecessary spaces at various places.
Also, fix lengthy lines.

* Handle NULL hostptr in conformance image tests

As per the spec, clCreateBuffer and clCreateImage return
CL_INVALID_HOST_PTR if host_ptr is NULL
and CL_MEM_USE_HOST_PTR or CL_MEM_COPY_HOST_PTR are set in flags
or if host_ptr is not NULL
but CL_MEM_USE_HOST_PTR or CL_MEM_COPY_HOST_PTR are not set in flags."

Host pointer should be NULL when USE/COPY_HOST_PTR is not set in flags.

* Revert "Handle NULL hostptr in conformance image tests"

This reverts commit 49fa049f9b75d77d325bc08e74b7e3e2e32147a6.

* Move cl_mem_flag and host_ptr check to ImageHelper

Add a check to see if cl_mem_flag has
USE_HOST_PTR or COPY_HOST_PTR.
Override host_ptr with NULL if none of them
are specified.
2021-01-29 14:18:13 +00:00
.github/workflows Replace Travis CI with Github Actions (#1047) 2020-11-06 11:23:50 +00:00
test_common Handle NULL hostptr in conformance image tests (#1087) 2021-01-29 14:18:13 +00:00
test_conformance Minor fixes for clCopyImage. (#1130) 2021-01-29 14:16:55 +00:00
test_extensions Remove imageSupportRequired parameter to runTestHarness (#1077) 2020-12-09 16:12:40 +00:00
.appveyor.yml build an OpenCL 3.0 ICD loader for CI builds (#860) 2020-07-29 09:32:40 +01:00
.clang-format clang-format: indent continued lines (#739) 2020-04-17 10:54:58 +01:00
.gitattributes Add SPIR-V binaries for OpenCL C++ tests. 2017-07-25 20:39:41 +05:30
check-format.sh Use clang-format-9 binary in Github Actions (#1088) 2021-01-04 15:20:55 +00:00
CMakeLists.txt gles: Fix compile errors. (#976) 2020-11-09 11:04:57 +00:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2018-10-10 16:02:58 -04:00
LICENSE.txt Change name to LICENSE.txt, revert to Apache 2.0 2018-10-03 10:08:39 -04:00
presubmit.sh Replace Travis CI with Github Actions (#1047) 2020-11-06 11:23:50 +00:00
readme-spir-v-binaries.txt Merge branch 'cl21_trunk' 2019-07-30 12:10:52 +01:00
README.md Update Travis badge to master branch (#258) 2019-05-02 17:05:11 +08:00

OpenCL-CTS Build Status

The OpenCL Conformance Tests