summaryrefslogtreecommitdiff
path: root/utests/compiler_fill_gl_image.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Runtime: re-enable cl_khr_gl_sharing with existing egl extension.Chuanbo Weng2016-09-121-35/+34
| | | | | | | | | | | | | | | | | | In order to query low level layout of GL buffer object/texture/render buffer, previous implementation introduced an egl extension and implemented in Beignet side. This way is broken once mesa change its related internal code. In this patch, we use an new egl extension (EGL_MESA_image_dma_buf_export) to query related layout infomations of gl texture. Since this egl extension is already accepted by Khronos, so it's a stable method. This patch just implement GL texture 2d buffer sharing, and we will implement other target type if necessary. v2: Add CMake build option to enable cl_khr_gl_sharing(default off). Clean up related CMake code. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* Fix delete operator using.Yan Wang2014-12-161-1/+1
| | | | | | | The 2 delete operators work on array pointer. Signed-off-by: Yan Wang <yan.wang@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* utests: use OpenCL 1.2 API for image related test cases.Zhigang Gong2014-06-131-1/+1
| | | | Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
* CLGL: Refine the hack of gbm extension initialization.Zhigang Gong2013-07-051-0/+4
| | | | | | | | | | | | | | | Previous implementation need to refer a EGL internal symbol. This refinement is also a hack. It just avoid use the EGL internal symbol, but it does use the internal EGL data structure. Anyway, before we made some changes to gbm to support our use model, this ugly method seems the only way to achive sharing gl 2d/3d textures. This patch also fix the bug when it failed to get a valid egl context it may crash. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* update to OpenCL 1.1 headerHomer Hsing2013-06-191-1/+1
| | | | | | | | | | | | | | | | | | | | | Based on our current progress, we plan to implement OpenCL 1.1 rather than OpenCL 1.2 for the next release. Thus we downgrade the header file to 1.1 in this commit. put OpenCL 1.1 header in include/CL/ add OpenCL 1.2 defs, used by some code, by "#ifndef CL_VERSION_1.2" " some OpenCL 1.2 defs" "#endif" add OCL_CREATE_IMAGE2D, OCL_CREATE_IMAGE3D, OCL_CREATE_GL_IMAGE2D, OCL_CREATE_GL_IMAGE3D update test cases Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* utests: add a simple test case for cl_khr_gl_sharing.Zhigang Gong2013-04-121-0/+72
This test case creates a OCL image from a OGL texture. Then use a OCL kernel to fill the image. Then it back to OGL to read the pixels back and verify the color. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Lu, Guanqun <guanqun.lu@intel.com>