<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi, in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982583#M2592</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I think that I have found the problem and it is on our side, in fact we use OpenGL 3+ and we create the openGL context in the following way :&lt;/P&gt;

&lt;P&gt;attribs[current++] = WGL_CONTEXT_MAJOR_VERSION_ARB;&lt;BR /&gt;
	attribs[current++] = 3;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_MINOR_VERSION_ARB;&lt;BR /&gt;
	attribs[current++] = 2;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_FLAGS_ARB;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB | WGL_CONTEXT_DEBUG_BIT_ARB;&lt;BR /&gt;
	glRC3 = wglCreateContextAttribsARB(hDC, 0, attribs);&lt;/P&gt;

&lt;P&gt;But it seems that you use some depreceated OpenGL functions in the OpenCL SDK !&lt;/P&gt;

&lt;P&gt;Please, can you advice ?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2013 14:01:15 GMT</pubDate>
    <dc:creator>Polar01</dc:creator>
    <dc:date>2013-11-29T14:01:15Z</dc:date>
    <item>
      <title>OpenGL interop on the CPU</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982568#M2577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I try to use the clCreateFromGLTexture to do openGL interop with the CPU, but it seems that it failed.&lt;/P&gt;
&lt;P&gt;Here is my code:&lt;/P&gt;
&lt;P&gt;glGenTextures(1, _glTex);&lt;BR /&gt; &lt;BR /&gt; //-- Texture&lt;BR /&gt; glBindTexture(GL_TEXTURE_2D, _glTex[0]);&lt;BR /&gt; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);&lt;BR /&gt; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);&lt;BR /&gt; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);&lt;BR /&gt; glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);&lt;BR /&gt; glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, _width, _height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);&lt;BR /&gt; glBindTexture(GL_TEXTURE_2D, 0);&lt;BR /&gt; &lt;BR /&gt; _clTex0 = clCreateFromGLTexture(_oclContext, CL_MEM_READ_WRITE, GL_TEXTURE_2D, 0, _glTex[0], &amp;amp;error);&lt;/P&gt;
&lt;P&gt;Does someone has an idea (For info it works fine with AMD SDK) !&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 16:35:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982568#M2577</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-08-23T16:35:10Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982569#M2578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What is the error you are getting? Can you attach a full reproducible?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2013 17:44:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982569#M2578</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2013-08-23T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982570#M2579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I got an INVALID_GL_OBJECT !!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2013 09:35:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982570#M2579</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-08-24T09:35:50Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982571#M2580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;can you shre your initialization code, i.e. how OCL-OGL shared context is created?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:11:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982571#M2580</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-08-26T09:11:54Z</dc:date>
    </item>
    <item>
      <title>Sure,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982572#M2581</link>
      <description>&lt;P&gt;Sure,&lt;/P&gt;
&lt;P&gt;cl_context_properties cps[] = {&lt;BR /&gt;CL_GL_CONTEXT_KHR, (intptr_t)_win32HGLRC,&lt;BR /&gt; CL_WGL_HDC_KHR, (intptr_t)_win32HDC,&lt;BR /&gt; CL_CONTEXT_PLATFORM, (cl_context_properties)platform(),&lt;BR /&gt; 0};&lt;/P&gt;
&lt;P&gt;return new cl::Context(devices, cps);&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 09:22:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982572#M2581</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-08-26T09:22:31Z</dc:date>
    </item>
    <item>
      <title>And what is happening inside</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982573#M2582</link>
      <description>&lt;P&gt;And&amp;nbsp;what is happening inside cl::Context(devices, cps)? For the CPU case it should be&amp;nbsp;smth like "return&amp;nbsp;&amp;nbsp;clCreateContextFromType(cps,CL_DEVICE_TYPE_CPU,NULL,NULL,NULL);"&amp;nbsp;&amp;nbsp;if ommiting the error checking. &amp;nbsp;This way you simply ask to create an interop-context with the CPU device .&lt;/P&gt;
&lt;P&gt;Notice that this is contrast to GPU-iterop case where&amp;nbsp;you need to call&amp;nbsp;clGetGLContextInfoKHR() with CL_CURRENT_DEVICE_FOR_GL_CONTEXT_KHR which would return a specific device id to create context with (this handles the potential multi-GPU case, since sharing&amp;nbsp;works with the particluar device which serves the specific GL context ).&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 13:08:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982573#M2582</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-08-26T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Hi Maxim,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982574#M2583</link>
      <description>&lt;P&gt;Hi Maxim,&lt;/P&gt;
&lt;P&gt;Here is the code :&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Context(&lt;BR /&gt; const VECTOR_CLASS&amp;lt;Device&amp;gt;&amp;amp; devices,&lt;BR /&gt; cl_context_properties* properties = NULL,&lt;BR /&gt; void (CL_CALLBACK * notifyFptr)(&lt;BR /&gt; const char *,&lt;BR /&gt; const void *,&lt;BR /&gt; ::size_t,&lt;BR /&gt; void *) = NULL,&lt;BR /&gt; void* data = NULL,&lt;BR /&gt; cl_int* err = NULL)&lt;BR /&gt; {&lt;BR /&gt; cl_int error;&lt;BR /&gt; object_ = ::clCreateContext(&lt;BR /&gt; properties, (cl_uint) devices.size(),&lt;BR /&gt; (cl_device_id*) &amp;amp;devices.front(),&lt;BR /&gt; notifyFptr, data, &amp;amp;error);&lt;/P&gt;
&lt;P&gt;detail::errHandler(error, __CREATE_CONTEXT_ERR);&lt;BR /&gt; if (err != NULL) {&lt;BR /&gt; *err = error;&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 16:03:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982574#M2583</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-08-26T16:03:02Z</dc:date>
    </item>
    <item>
      <title>This code is extracted from</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982575#M2584</link>
      <description>&lt;P&gt;This code is extracted from cl.hpp, provided by the Khronos group.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 16:05:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982575#M2584</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-08-26T16:05:22Z</dc:date>
    </item>
    <item>
      <title>Hi again,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982576#M2585</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;Actualy you need to create PBO (which is kind of "view" associated with the texture), and this will be the PBO object to share with. Since PBO is extension, you would need to use glew that smoothly works with available extensions, or otherwise manually get the func adresses for the PBO API.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;//create pixel-buffer object &amp;nbsp;&lt;/P&gt;
&lt;P&gt;glGenBuffers(1, &amp;amp;pbo);&amp;nbsp;&lt;/P&gt;
&lt;P&gt;glBindBuffer(GL_ARRAY_BUFFER, pbo);&lt;/P&gt;
&lt;P&gt;glBufferData(GL_ARRAY_BUFFER, _width * _height * sizeof(cl_uchar4), NULL, GL_DYNAMIC_DRAW);&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After that you call the clCreateFromGLTexture for the PBO object to get the OpenCL buffer object to work with. So you do a call&amp;nbsp;to the clEnqueueAcquireGLObjects for the resulting buffer, some processing with OpenCL and clEnqueueReleaseGLObjects after that. Notice that these OpenCL APIs are conceptually similar to glBindBuffer/glUnmapBuffer that are used to work with PBOs usinf regular native code like C/C++.&lt;/P&gt;
&lt;P&gt;Finally to use (e.g. display) the texture &amp;nbsp;with OpenGL again, you bind both PBO and the texture and sync them like this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;//tells the driver you wish to transfer pixel data from PBO (unpack)&lt;/P&gt;
&lt;P&gt;glBindBuffer(GL_PIXEL_UNPACK_BUFFER_ARB, pbo);&lt;/P&gt;
&lt;P&gt;//to the specific texture&lt;/P&gt;
&lt;P&gt;glBindTexture(GL_TEXTURE_2D, texture);&lt;/P&gt;
&lt;P&gt;//data upload&lt;/P&gt;
&lt;P&gt;glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, _width, _height, GL_RGBA, GL_UNSIGNED_BYTE, NULL);&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Now you can&amp;nbsp;for example render a textured quad.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2013 10:25:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982576#M2585</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-09-02T10:25:24Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot Maxim,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982577#M2586</link>
      <description>&lt;P&gt;Thanks a lot Maxim,&lt;/P&gt;
&lt;P&gt;I have also try with the PBO, but failed to create this one, here is my code :&lt;/P&gt;
&lt;P&gt;glGenBuffers(1, &amp;amp;_glPBO); &lt;BR /&gt;glBindBuffer(GL_ARRAY_BUFFER, _glPBO);&lt;BR /&gt;glBufferData(GL_ARRAY_BUFFER, _width * _height * 4, NULL, GL_DYNAMIC_DRAW);&lt;/P&gt;
&lt;P&gt;_clPBO = _oclContext.CreateFromGLTexture(CL_MEM_READ_WRITE, GL_TEXTURE_2D, 0, _glPBO, &amp;amp;error);&lt;/P&gt;
&lt;P&gt;Then I got an opengl error :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GL_INVALID_ENUM error generated. &amp;lt;pname&amp;gt; requires feature(s) disabled in the current profile.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2013 10:32:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982577#M2586</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-09-06T10:32:21Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982578#M2587</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when working with PBO, you should use clCreateFromGL&lt;STRONG&gt;Buffer&lt;/STRONG&gt;, since PBO is kind of "mapped" view of the texture which is translated to OpenCL &lt;STRONG&gt;buffers&lt;/STRONG&gt;. &amp;nbsp;While CreateFromGL&lt;STRONG&gt;Texture &lt;/STRONG&gt;generates OpenCL &lt;STRONG&gt;image&lt;/STRONG&gt; object. Which way is more optimal depends on the rest of app (and kernels) code.&lt;/P&gt;
&lt;P&gt;We will try to reproduce an issue with CreateFromGLTexture and will come back to you soon. You can use PBO/clCreateFromGLBuffer as a workaround in a meantime.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2013 15:30:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982578#M2587</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-09-12T15:30:57Z</dc:date>
    </item>
    <item>
      <title>Hi Maxim,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982579#M2588</link>
      <description>&lt;P&gt;Hi Maxim,&lt;/P&gt;
&lt;P&gt;I'm still trying to figure out why I have such error.... now I can create the PBO without problem, but when I try to create the texture I got an OpenGL error : "GL_INVALID_ENUM error generated. &amp;lt;pname&amp;gt; requires feature(s) disabled in the current profile."&lt;/P&gt;
&lt;P&gt;I receive this error from the "OpenGL ARB Callback" !!&lt;/P&gt;
&lt;P&gt;And the&amp;nbsp;CreateFromGLTexture return "INVALID GL OBJECT" !&lt;/P&gt;
&lt;P&gt;So, to summarize I create a PBO and 2 textures... but the texture creation fail !&lt;BR /&gt;&lt;BR /&gt;Here is the code (I got a crash at the last 2 lines)&lt;/P&gt;
&lt;P&gt;//---- Initialize the PBO&lt;BR /&gt; _glContext-&amp;gt;glGenBuffers(1, &amp;amp;_glPBO); &lt;BR /&gt; _glContext-&amp;gt;glBindBuffer(GL_ARRAY_BUFFER, _glPBO);&lt;BR /&gt; _glContext-&amp;gt;glBufferData(GL_ARRAY_BUFFER, _width * _height * _components * _bytesPerComponent, NULL, GL_DYNAMIC_DRAW);&lt;/P&gt;
&lt;P&gt;_clPBO = _oclContext.CreateFromGLBuffer(OPENCL_MEMORY_OBJECT_FLAGS::READ_WRITE, _glPBO, &amp;amp;error);&lt;/P&gt;
&lt;P&gt;//---- Texture&lt;BR /&gt; _glContext-&amp;gt;glGenTextures(2, _glTex);&lt;BR /&gt; &lt;BR /&gt; //-- Texture 0&lt;BR /&gt; _glContext-&amp;gt;glBindTexture(GL_TEXTURE_2D, _glTex[0]); // Bind&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);&lt;BR /&gt; _glContext-&amp;gt;glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, _width, _height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);&lt;BR /&gt; _glContext-&amp;gt;glBindTexture(GL_TEXTURE_2D, 0); // Unbind&lt;/P&gt;
&lt;P&gt;//-- Texture 1&lt;BR /&gt; _glContext-&amp;gt;glBindTexture(GL_TEXTURE_2D, _glTex[1]); // Bind&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);&lt;BR /&gt; _glContext-&amp;gt;glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);&lt;BR /&gt; _glContext-&amp;gt;glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, _width, _height, 0, GL_RGBA, GL_UNSIGNED_BYTE, 0);&lt;BR /&gt; _glContext-&amp;gt;glBindTexture(GL_TEXTURE_2D, 0); // Unbind&lt;/P&gt;
&lt;P&gt;_glContext-&amp;gt;glFinish();&lt;/P&gt;
&lt;P&gt;_clTex0 = _oclContext.CreateFromGLTexture(OPENCL_MEMORY_OBJECT_FLAGS::READ_WRITE, GL_TEXTURE_2D, 0, _glTex[0], &amp;amp;error);&lt;BR /&gt; _clTex1 = _oclContext.CreateFromGLTexture(OPENCL_MEMORY_OBJECT_FLAGS::READ_WRITE, GL_TEXTURE_2D, 0, _glTex[1], &amp;amp;error);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2013 08:12:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982579#M2588</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-09-30T08:12:00Z</dc:date>
    </item>
    <item>
      <title>Sorry for the late reply. I</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982580#M2589</link>
      <description>&lt;P&gt;Sorry for the late reply. I am doing the exact same thing and the call to clCreateFromGLTexture() succeeds. Is it possible to share a minimal reproducer demonstrating the problem? Also what's you system config and driver version?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Raghu&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 18:45:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982580#M2589</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2013-10-09T18:45:39Z</dc:date>
    </item>
    <item>
      <title>Quote:Polar01 wrote:</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982581#M2590</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Polar01 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And the&amp;nbsp;CreateFromGLTexture return "INVALID GL OBJECT" !&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi again, as a potential workaround, can you please try calling&amp;nbsp;&lt;EM&gt;&amp;nbsp;glGenerateMipmap( GL_TEXTURE_2D );&lt;/EM&gt;&amp;nbsp;right after glTexImage2D?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2013 09:08:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982581#M2590</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-11-15T09:08:07Z</dc:date>
    </item>
    <item>
      <title>Thanks Maxim,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982582#M2591</link>
      <description>&lt;P&gt;Thanks Maxim,&lt;/P&gt;

&lt;P&gt;I have just try, but it still crash !&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I have the following OpenGL message :&amp;nbsp;&lt;/SPAN&gt;GL_INVALID_ENUM error generated. &amp;lt;pname&amp;gt; requires feature(s) disabled in the current profile.​&lt;/P&gt;

&lt;P&gt;How can I check the problem with my profile ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 12:43:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982582#M2591</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-11-28T12:43:44Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982583#M2592</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I think that I have found the problem and it is on our side, in fact we use OpenGL 3+ and we create the openGL context in the following way :&lt;/P&gt;

&lt;P&gt;attribs[current++] = WGL_CONTEXT_MAJOR_VERSION_ARB;&lt;BR /&gt;
	attribs[current++] = 3;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_MINOR_VERSION_ARB;&lt;BR /&gt;
	attribs[current++] = 2;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_FLAGS_ARB;&lt;BR /&gt;
	attribs[current++] = WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB | WGL_CONTEXT_DEBUG_BIT_ARB;&lt;BR /&gt;
	glRC3 = wglCreateContextAttribsARB(hDC, 0, attribs);&lt;/P&gt;

&lt;P&gt;But it seems that you use some depreceated OpenGL functions in the OpenCL SDK !&lt;/P&gt;

&lt;P&gt;Please, can you advice ?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 14:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982583#M2592</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-11-29T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Hi Maxim,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982584#M2593</link>
      <description>&lt;P&gt;Hi Maxim,&lt;/P&gt;

&lt;P&gt;Have you find some time to look at this problem ?&lt;/P&gt;

&lt;P&gt;Krys&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 16:01:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982584#M2593</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-12-10T16:01:36Z</dc:date>
    </item>
    <item>
      <title>Hiiiiiii,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982585#M2594</link>
      <description>&lt;P&gt;Hiiiiiii,&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Is there someone here ? :'(&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;How can I help you to fix the problem &amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2013 12:56:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982585#M2594</guid>
      <dc:creator>Polar01</dc:creator>
      <dc:date>2013-12-18T12:56:38Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982586#M2595</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry for the late answer on this.&lt;/P&gt;

&lt;P&gt;I tried&amp;nbsp;&amp;nbsp;creating the context with wglCreateContextAttribsARB, and the subsequent calls to clCreateFromGLTexture work fine for me.&lt;/P&gt;

&lt;P&gt;We would need a small repro from you, as Raghu already asked.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:26:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenGL-interop-on-the-CPU/m-p/982586#M2595</guid>
      <dc:creator>Maxim_S_Intel</dc:creator>
      <dc:date>2013-12-19T11:26:06Z</dc:date>
    </item>
  </channel>
</rss>

