[Beignet] [PATCH 4/4] utests: add one test case to test get_image_width/height.

zhigang gong zhigang.gong at gmail.com
Fri May 17 06:08:47 PDT 2013


It's should be a 64bit issue. Please find the function set_image_info, and
change to use the following version.

static void
set_image_info(char *curbe, struct ImageInfo * image_info, cl_mem image)
{
  if (image_info->wSlot >= 0)
    *(uint32_t*)(curbe + image_info->wSlot) = image->w;
  if (image_info->hSlot >= 0)
    *(uint32_t*)(curbe + image_info->hSlot) = image->h;
}



On Fri, May 17, 2013 at 6:49 PM, Simon Richter <Simon.Richter at hogyros.de>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I'm afraid this test case fails for me:
>
> compiler_get_image_size:
>   compiler_get_image_size()    [FAILED]
>     Error: ((uint32_t*)buf_data[1])[i] == ((w << 16) | (h))
>   at file /home/geier/beignet/utests/compiler_get_image_size.cpp,
> function compiler_get_image_size, line 33
>
> My device is
>
> 00:02.0 0300: 8086:0166 (rev 09) (prog-if 00 [VGA controller])
>         Subsystem: 10cf:16c1
>
>    Simon
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iJwEAQECAAYFAlGWCzsACgkQ0sfeulffv7t62wP/e5Xy819aC8AASWGSWqrFiNaN
> fMD4dFLa+rXAzOOaszScf8/cY09KV3ikj6MjKQyd4yPk4CSr1xA4leUS4OCns7QJ
> aN4+9G+tEB6bMaZnqGvT5b5+wLGXoLhsEFuHjhY9udXgu6dePy2/+V3J/m7LUDTu
> nWa3ZOVCzgR0bJQEApI=
> =12wL
> -----END PGP SIGNATURE-----
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20130517/e222f99b/attachment.html>


More information about the Beignet mailing list