get_image_dim returns 0 when targetting a shared gl texture (cl_khr_gl_sharing)
Submitted by Russell Newman
Assigned to Zhigang Gong @gongzg
Link to original bug (#104477)
Description
When using a shared gl texture in a kernel with the cl_khr_gl_sharing extension, functions to obtain the resolution of the texture return 0.
i.e. get_image_dim get_image_width get_image_height
functions in kernel all return 0. This was with the gl texture marked as write_only.
The input texture (read_only) to the kernel was not a gl texture and the image dimension functions returned the correct value.
Version of Beignet: 1.3.2-1 Target hardware: UP Squared board - Intel N4200 (Apollo lake) Linux info: Ubilinux 4 (4.9 kernel)