add utest for creating 2d image from buffer

Graphics / Beignet - Luo Xionghu [intel.com] - 22 September 2015 03:15 UTC

v2: check cl_khr_image2d_from_buffer support first; use CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT to allocate memory.
v3: fix clGetDeviceInfo use.

afd9b06 add utest for creating 2d image from buffer.
utests/CMakeLists.txt | 1 +
utests/image_from_buffer.cpp | 82 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 83 insertions(+)

Upstream: cgit.freedesktop.org


  • Share