diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-08-09 11:42:38 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 8b2fdc9dd3e0c66394e1a2f50ca9364d9195fbfe (patch) | |
tree | 5aeb6484d56918b1a276b228da23db3684aac4eb /include/CL/cl_gl.h | |
parent | 4ead11aa586422ffc9b44123fd4b1ba308f08f24 (diff) | |
download | ComputeLibrary-8b2fdc9dd3e0c66394e1a2f50ca9364d9195fbfe.tar.gz |
COMPMID-1478: Updated OpenCL headers to the latest Khronos ones
Change-Id: Ie26b78c9da635206c96111ea490ac565063838ba
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143408
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'include/CL/cl_gl.h')
-rw-r--r-- | include/CL/cl_gl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/CL/cl_gl.h b/include/CL/cl_gl.h index 945daa83d7..58b6449f9b 100644 --- a/include/CL/cl_gl.h +++ b/include/CL/cl_gl.h @@ -1,5 +1,5 @@ /********************************************************************************** - * Copyright (c) 2008-2015 The Khronos Group Inc. + * Copyright (c) 2008-2018 The Khronos Group Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and/or associated documentation files (the @@ -49,15 +49,19 @@ typedef struct __GLsync *cl_GLsync; #define CL_GL_OBJECT_TEXTURE2D 0x2001 #define CL_GL_OBJECT_TEXTURE3D 0x2002 #define CL_GL_OBJECT_RENDERBUFFER 0x2003 +#ifdef CL_VERSION_1_2 #define CL_GL_OBJECT_TEXTURE2D_ARRAY 0x200E #define CL_GL_OBJECT_TEXTURE1D 0x200F #define CL_GL_OBJECT_TEXTURE1D_ARRAY 0x2010 #define CL_GL_OBJECT_TEXTURE_BUFFER 0x2011 +#endif /* cl_gl_texture_info */ #define CL_GL_TEXTURE_TARGET 0x2004 #define CL_GL_MIPMAP_LEVEL 0x2005 +#ifdef CL_VERSION_1_2 #define CL_GL_NUM_SAMPLES 0x2012 +#endif extern CL_API_ENTRY cl_mem CL_API_CALL @@ -66,6 +70,8 @@ clCreateFromGLBuffer(cl_context /* context */, cl_GLuint /* bufobj */, int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_0; +#ifdef CL_VERSION_1_2 + extern CL_API_ENTRY cl_mem CL_API_CALL clCreateFromGLTexture(cl_context /* context */, cl_mem_flags /* flags */, @@ -74,6 +80,8 @@ clCreateFromGLTexture(cl_context /* context */, cl_GLuint /* texture */, cl_int * /* errcode_ret */) CL_API_SUFFIX__VERSION_1_2; +#endif + extern CL_API_ENTRY cl_mem CL_API_CALL clCreateFromGLRenderbuffer(cl_context /* context */, cl_mem_flags /* flags */, |