<?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 clCreateFromGLTexture2D in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790595#M610</link>
    <description>Hey guys... I have a problem with clCreateFromGLTexture2D.&lt;BR /&gt;The problem ist that I need to call the function twice to get a valid memory objects. Is this a bug... or did I missed to initialize something?!!?? Ive used the code with the NVidia SDK and there it works fine... currently just the CPU makes problems?!?! Any suggestions?!?!&lt;BR /&gt;&lt;BR /&gt;SampleCode: &lt;BR /&gt;&lt;BR /&gt; GLuint gl_texture_id;&lt;BR /&gt; GLenum target = GL_TEXTURE_2D;&lt;BR /&gt; cl_int l_Error; &lt;BR /&gt; &lt;BR /&gt; // Create a texture in OpenGL and allocate space&lt;BR /&gt; glGenTextures(1, &amp;amp;gl_texture_id);&lt;BR /&gt; glBindTexture(target, gl_texture_id);&lt;BR /&gt; glTexImage2D(target, 0, GL_RGBA8, in_DisplacementTextureWidth, in_DisplacementTextureHeight, 0,&lt;BR /&gt; GL_RGBA, GL_FLOAT, NULL);&lt;BR /&gt; &lt;BR /&gt; // Create first ref&lt;BR /&gt; cl_mem cl_image = clCreateFromGLTexture2D(m_ClContext.m_Context, CL_MEM_READ_WRITE,&lt;BR /&gt; GL_TEXTURE_2D, 0, gl_texture_id, &amp;amp;l_Error);&lt;BR /&gt; if (!cl_image || l_Error != CL_SUCCESS)&lt;BR /&gt;
  return false; // not valid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; cl_image = clCreateFromGLTexture2D(m_ClContext.m_Context, CL_MEM_READ_WRITE,&lt;BR /&gt; GL_TEXTURE_2D, 0, gl_texture_id, &amp;amp;l_Error);&lt;BR /&gt; if (!cl_image || l_Error != CL_SUCCESS)&lt;BR /&gt; return false; // valid&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Jul 2011 10:56:41 GMT</pubDate>
    <dc:creator>lollo-isweb_de</dc:creator>
    <dc:date>2011-07-12T10:56:41Z</dc:date>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790595#M610</link>
      <description>Hey guys... I have a problem with clCreateFromGLTexture2D.&lt;BR /&gt;The problem ist that I need to call the function twice to get a valid memory objects. Is this a bug... or did I missed to initialize something?!!?? Ive used the code with the NVidia SDK and there it works fine... currently just the CPU makes problems?!?! Any suggestions?!?!&lt;BR /&gt;&lt;BR /&gt;SampleCode: &lt;BR /&gt;&lt;BR /&gt; GLuint gl_texture_id;&lt;BR /&gt; GLenum target = GL_TEXTURE_2D;&lt;BR /&gt; cl_int l_Error; &lt;BR /&gt; &lt;BR /&gt; // Create a texture in OpenGL and allocate space&lt;BR /&gt; glGenTextures(1, &amp;amp;gl_texture_id);&lt;BR /&gt; glBindTexture(target, gl_texture_id);&lt;BR /&gt; glTexImage2D(target, 0, GL_RGBA8, in_DisplacementTextureWidth, in_DisplacementTextureHeight, 0,&lt;BR /&gt; GL_RGBA, GL_FLOAT, NULL);&lt;BR /&gt; &lt;BR /&gt; // Create first ref&lt;BR /&gt; cl_mem cl_image = clCreateFromGLTexture2D(m_ClContext.m_Context, CL_MEM_READ_WRITE,&lt;BR /&gt; GL_TEXTURE_2D, 0, gl_texture_id, &amp;amp;l_Error);&lt;BR /&gt; if (!cl_image || l_Error != CL_SUCCESS)&lt;BR /&gt;
  return false; // not valid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; cl_image = clCreateFromGLTexture2D(m_ClContext.m_Context, CL_MEM_READ_WRITE,&lt;BR /&gt; GL_TEXTURE_2D, 0, gl_texture_id, &amp;amp;l_Error);&lt;BR /&gt; if (!cl_image || l_Error != CL_SUCCESS)&lt;BR /&gt; return false; // valid&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Jul 2011 10:56:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790595#M610</guid>
      <dc:creator>lollo-isweb_de</dc:creator>
      <dc:date>2011-07-12T10:56:41Z</dc:date>
    </item>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790596#M611</link>
      <description>Hey,&lt;BR /&gt;&lt;BR /&gt;Your code looks fine.&lt;BR /&gt;&lt;BR /&gt;Could you provide small reproducer application? This will help us to understand the problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny</description>
      <pubDate>Tue, 12 Jul 2011 12:27:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790596#M611</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-07-12T12:27:49Z</dc:date>
    </item>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790597#M612</link>
      <description>After building a sample application I figured out what was wrong... stupid thing! I just was still including and linking the NVdia libs and includes instead the one of Intel OpenCl SDK. Change it and not it works smoothly.</description>
      <pubDate>Wed, 13 Jul 2011 08:03:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790597#M612</guid>
      <dc:creator>lollo-isweb_de</dc:creator>
      <dc:date>2011-07-13T08:03:49Z</dc:date>
    </item>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790598#M613</link>
      <description>After testing a little bit I found a version that doesnt work with the IntelSDK - I created a sample and uploaded it. I would appreciate it if your team could take a look at it?!?! As far as I can say the context is valid... but the error message say something different.&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.file-upload.net/download-3585270/Tes3.rar.html" target="_blank"&gt;http://www.file-upload.net/download-3585270/Tes3.rar.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2011 14:58:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790598#M613</guid>
      <dc:creator>lollo-isweb_de</dc:creator>
      <dc:date>2011-07-14T14:58:36Z</dc:date>
    </item>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790599#M614</link>
      <description>Can someone even confirm that there is something wrong... maybe it depends only on my configuration or system!?!</description>
      <pubDate>Fri, 15 Jul 2011 15:03:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790599#M614</guid>
      <dc:creator>lollo-isweb_de</dc:creator>
      <dc:date>2011-07-15T15:03:32Z</dc:date>
    </item>
    <item>
      <title>clCreateFromGLTexture2D</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790600#M615</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like code is right.&lt;BR /&gt;Today we accpect CL_WGL_HDC_KHR to be defined.&lt;BR /&gt;&lt;BR /&gt;We must also enable the default value 0.&lt;BR /&gt;&lt;BR /&gt;Meanwhile please provide this property.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Evgeny</description>
      <pubDate>Sun, 17 Jul 2011 05:45:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/clCreateFromGLTexture2D/m-p/790600#M615</guid>
      <dc:creator>Evgeny_F_Intel</dc:creator>
      <dc:date>2011-07-17T05:45:26Z</dc:date>
    </item>
  </channel>
</rss>

