<div dir="ltr"><div>It's should be a 64bit issue. Please find the function set_image_info, and change to use the following version.<br></div><div><br>static void<br>set_image_info(char *curbe, struct ImageInfo * image_info, cl_mem image)<br>
{<br>  if (image_info->wSlot >= 0)<br>    *(uint32_t*)(curbe + image_info->wSlot) = image->w;<br>  if (image_info->hSlot >= 0)<br>    *(uint32_t*)(curbe + image_info->hSlot) = image->h;<br>}<br><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 6:49 PM, Simon Richter <span dir="ltr"><<a href="mailto:Simon.Richter@hogyros.de" target="_blank">Simon.Richter@hogyros.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi,<br>
<br>
I'm afraid this test case fails for me:<br>
<br>
compiler_get_image_size:<br>
  compiler_get_image_size()    [FAILED]<br>
    Error: ((uint32_t*)buf_data[1])[i] == ((w << 16) | (h))<br>
  at file /home/geier/beignet/utests/compiler_get_image_size.cpp,<br>
function compiler_get_image_size, line 33<br>
<br>
My device is<br>
<br>
00:02.0 0300: 8086:0166 (rev 09) (prog-if 00 [VGA controller])<br>
        Subsystem: 10cf:16c1<br>
<br>
   Simon<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iJwEAQECAAYFAlGWCzsACgkQ0sfeulffv7t62wP/e5Xy819aC8AASWGSWqrFiNaN<br>
fMD4dFLa+rXAzOOaszScf8/cY09KV3ikj6MjKQyd4yPk4CSr1xA4leUS4OCns7QJ<br>
aN4+9G+tEB6bMaZnqGvT5b5+wLGXoLhsEFuHjhY9udXgu6dePy2/+V3J/m7LUDTu<br>
nWa3ZOVCzgR0bJQEApI=<br>
=12wL<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Beignet mailing list<br>
<a href="mailto:Beignet@lists.freedesktop.org">Beignet@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/beignet" target="_blank">http://lists.freedesktop.org/mailman/listinfo/beignet</a><br>
</div></div></blockquote></div><br></div>