<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Hi Sean,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">It seems we do not support API clCreateFromGLTexture in beignet, you can get what api we support from the file
<a name="_MailEndCompose">src/cl_khr_icd.c.<o:p></o:p></a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If PyOpenCL can run into this maybe there is something wrong with the device extension check either for them or for beignet. I will recheck about this and give
you a clear reply then.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Xiuli<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Beignet [mailto:beignet-bounces@lists.freedesktop.org]
<b>On Behalf Of </b>Sean Lynch<br>
<b>Sent:</b> Tuesday, March 29, 2016 2:15 PM<br>
<b>To:</b> beignet@lists.freedesktop.org<br>
<b>Subject:</b> [Beignet] clCreateFromGLTexture working?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I'm getting a segfault with the following stack when trying to call clCreateFromGLTexture from PyOpenCL (which just got preliminary support for it):<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">#0 0x0000000000000000 in ?? ()<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#1 0x00007f8b6af995bd in clCreateFromGLTexture () from /usr/lib/libOpenCL.so.1<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#2 0x00007f8b6b1f3a78 in create_from_gl_texture () from /home/seanl/project/voxel/pyenv/lib/python3.5/site-packages/pyopencl-2015.2.4-py3.5-linux-x86_64.egg/pyopencl/_<a href="http://cffi.cpython-35m-x86_64-linux-gnu.so">cffi.cpython-35m-x86_64-linux-gnu.so</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#3 0x00007f8b6b1cb10b in _cffi_f_create_from_gl_texture(_object*, _object*) () from /home/seanl/project/voxel/pyenv/lib/python3.5/site-packages/pyopencl-2015.2.4-py3.5-linux-x86_64.egg/pyopencl/_<a href="http://cffi.cpython-35m-x86_64-linux-gnu.so">cffi.cpython-35m-x86_64-linux-gnu.so</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#4 0x00007f8b75f755e9 in PyCFunction_Call () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#5 0x00007f8b75fed5f1 in PyEval_EvalFrameEx () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#6 0x00007f8b75fee9e2 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#7 0x00007f8b75feeac3 in PyEval_EvalCodeEx () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#8 0x00007f8b75f58b98 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#9 0x00007f8b75f2e0da in PyObject_Call () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#10 0x00007f8b75f44d64 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#11 0x00007f8b75f2e0da in PyObject_Call () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#12 0x00007f8b75f8aa10 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#13 0x00007f8b75f88de6 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#14 0x00007f8b75f2e0da in PyObject_Call () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#15 0x00007f8b75fe74bc in PyEval_EvalFrameEx () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#16 0x00007f8b75fed942 in PyEval_EvalFrameEx () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#17 0x00007f8b75fee9e2 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#18 0x00007f8b75feeac3 in PyEval_EvalCodeEx () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#19 0x00007f8b75feeaeb in PyEval_EvalCode () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#20 0x00007f8b7600dc64 in ?? () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#21 0x00007f8b76010175 in PyRun_FileExFlags () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#22 0x00007f8b760102e6 in PyRun_SimpleFileExFlags () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#23 0x00007f8b760270f4 in Py_Main () from /usr/lib/libpython3.5m.so.1.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#24 0x0000000000400af7 in main ()<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Should this work with current Beignet master?<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>