[Beignet] [PATCH] Fix utest compiler_group_size4 error.
Zhigang Gong
zhigang.gong at linux.intel.com
Fri Aug 30 01:34:58 PDT 2013
LGTM, pushed, thanks.
On Fri, Aug 30, 2013 at 04:29:32PM +0800, Ruiling Song wrote:
> Per opencl spec, bitfield is not supported.
>
> Signed-off-by: Ruiling Song <ruiling.song at intel.com>
> ---
> kernels/compiler_group_size.cl | 6 +++---
> utests/compiler_group_size.cpp | 6 +++---
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/kernels/compiler_group_size.cl b/kernels/compiler_group_size.cl
> index 0fe88c1..4e2c333 100644
> --- a/kernels/compiler_group_size.cl
> +++ b/kernels/compiler_group_size.cl
> @@ -11,9 +11,9 @@ compiler_group_size(__global unsigned int *dst)
> }
>
> struct xyz{
> - unsigned b:16;
> - unsigned e:16;
> - unsigned o;
> + unsigned short b;
> + unsigned short e;
> + unsigned int o;
> };
>
> __kernel void
> diff --git a/utests/compiler_group_size.cpp b/utests/compiler_group_size.cpp
> index 02544b2..724d6e8 100644
> --- a/utests/compiler_group_size.cpp
> +++ b/utests/compiler_group_size.cpp
> @@ -2,9 +2,9 @@
> #include <string.h>
>
> struct xyz{
> - unsigned b:16;
> - unsigned e:16;
> - unsigned o;
> + unsigned short b;
> + unsigned short e;
> + unsigned int o;
> };
>
> void compiler_group_size1(void)
> --
> 1.7.9.5
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list