clGetMemObjectInfo with CL_MEM_ASSOCIATED_MEMOBJECT should return the mem in cl_image_desc. As in CL_MEM_OBJECT_IMAGE1D_BUFFER we copy the buffer, add a workaround for it.
976fab1 Runtime: Add support for clGetMemObjectInfo
src/cl_mem.c | 14 ++++++++++----
src/cl_mem.h | 1 +
2 files changed, 11 insertions(+), 4 deletions(-)
Upstream: cgit.freedesktop.org