Add tests for cl_ext_immutable_memory_objects
This change provides partial test coverage for KhronosGroup/OpenCL-Docs#1280
Adding CTS tests for:
- clEnqueueMapBuffer, clEnqueueMapImage.
- Command buffer negative tests.
- clSetKernelArgs negative tests.
The bulk of the tests is to make sure that the CL driver does not allow writing to a memory object that is created with CL_MEM_IMMUTABLE_EXT flag when used with the above APIs.
Looks like this is another one where we'll need header changes before we can merge.
Would it be possible to get a draft headers PR up with these changes so this won't become a bottleneck once the tests have been reviewed?
Thanks for the review.
There is a plan to add more tests to cover command queue's fills and copies and reading from buffers and images.
Here's a PR adding definitions to the headers: https://github.com/KhronosGroup/OpenCL-Headers/pull/274
Please re-add "focused review" once the merge conflicts are resolved.
@MichaelRizkalla-arm Could you resolve the merge conflicts please?
I have updated the PR to resolve the merge conflicts.
Merging as discussed in the June 17th memory subgroup.