CL: Enalbe gl sharing with new egl extension.
authorZhigang Gong <zhigang.gong@gmail.com>
Mon, 26 Aug 2013 14:45:48 +0000 (22:45 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 6 Sep 2013 08:24:57 +0000 (16:24 +0800)
commit4a6106b0b6bc13b76855cfa9b1f4d33248ed97c7
tree806d6c058b4776af8c6cc099d97dae73dd2e8fe8
parent9a2fd56bc0982499449f2ea84d7e0d5a3d49ad82
CL: Enalbe gl sharing with new egl extension.

The previous implementation is only for 2d/3d texture sharing and
is implemented in a hacky fashinon. We need to replace it with a
clean and complete one. We introduce a new egl extension to export
low level layout information of a buffer object/texture/render buffer
from the mesa dri driver to the cl driver layer. As the extension is
not accpepted by mesa, we have to implement this new extension in
beignet internally.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: He Junyan <junyan.he@inbox.com>
31 files changed:
CMake/FindEGL.cmake
src/CMakeLists.txt
src/cl_context.h
src/cl_driver.h
src/cl_driver_defs.c
src/cl_driver_type.h [new file with mode: 0644]
src/cl_extensions.c
src/cl_extensions.h
src/cl_khr_icd.h
src/cl_mem.c
src/cl_mem.h
src/cl_mem_gl.c
src/intel/intel_dri_resource_sharing.c [new file with mode: 0644]
src/intel/intel_dri_resource_sharing.h [new file with mode: 0644]
src/intel/intel_dri_resource_sharing_int.h [new file with mode: 0644]
src/intel/intel_driver.c
src/intel/intel_driver.h
src/x11/dricommon.h
src/x11/gbm_deps/backend.h [deleted file]
src/x11/gbm_deps/common.h [deleted file]
src/x11/gbm_deps/common_drm.h [deleted file]
src/x11/gbm_deps/gbm.h [deleted file]
src/x11/gbm_deps/gbm_driint.h [deleted file]
src/x11/gbm_deps/gbmint.h [deleted file]
src/x11/gbm_dri2_x11_platform.c [deleted file]
src/x11/mesa_egl_extension.c [new file with mode: 0644]
src/x11/mesa_egl_extension.h [new file with mode: 0644]
src/x11/mesa_egl_res_share.c [new file with mode: 0644]
src/x11/mesa_egl_res_share.h [new file with mode: 0644]
utests/CMakeLists.txt
utests/utest_helper.cpp