OpenCL-CTS
OpenCL-CTS copied to clipboard
Add AHB lifetime test
Add lifetime test for AHardwareBuffer in which for both CL Buffers and CL Images the following steps are taken
- Create AHB
- Create mem object from the AHB
- Release the AHB
- Read and write from and to the mem object
- Verify the reads and write have happened sucessfully
The CL implementation should maintain a reference count to the AHB since the AHB must not be deallocated for the test to pass.