[Beignet] [PATCH] fix builtin function "ldexp"

2013-11-12 Thread Homer Hsing
fixed corner cases when input parameter has special value Signed-off-by: Homer Hsing --- backend/src/ocl_stdlib.tmpl.h | 41 - 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index

[Beignet] [PATCH 1/2] Add other unsigned interger types mask type of shuffle and shuffle2.

2013-11-12 Thread Yang Rong
Signed-off-by: Yang Rong --- backend/src/ocl_stdlib.tmpl.h | 103 -- 1 file changed, 59 insertions(+), 44 deletions(-) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 50795ef..df663ea 100644 --- a/backend/src/ocl_stdlib.tmp

[Beignet] [PATCH 2/2] Add bitcast support between vetor and scalar type.

2013-11-12 Thread Yang Rong
Signed-off-by: Yang Rong --- backend/src/backend/gen_insn_selection.cpp | 77 + backend/src/ir/instruction.cpp | 90 ++ backend/src/ir/instruction.hpp | 17 +- backend/src/ir/instruction.hxx | 1 + backen

[Beignet] [PATCH 1/2] GBE: remove all vstore macros for constant memory space.

2013-11-12 Thread Zhigang Gong
Signed-off-by: Zhigang Gong --- backend/src/ocl_stdlib.tmpl.h | 20 +++- kernels/test_copy_image.cl|8 +--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 7af39ce..23c8f6a 100644 ---

[Beignet] [PATCH 2/2] GBE: fix the constant data allocation.

2013-11-12 Thread Zhigang Gong
From: Zhigang Gong Need to keep consistency between the constant data allocation and the constant register allocation. So we need to skip the unused constant data at the constant data allocation stage. To avoid possible mismatching, add a new assert in the constant register(address) allocation s

Re: [Beignet] [PATCH 2/2] GBE: fix the constant data allocation.

2013-11-12 Thread Song, Ruiling
The whole patchset LGTM. Thanks! -Original Message- From: beignet-boun...@lists.freedesktop.org [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Zhigang Gong Sent: Wednesday, November 13, 2013 8:35 AM To: beignet@lists.freedesktop.org Cc: Zhigang Gong Subject: [Beignet] [PATCH

Re: [Beignet] [PATCH 1/2] GBE: remove all vstore macros for constant memory space.

2013-11-12 Thread Zhigang Gong
Please ignore the change in kernels/test_copy_image.cl. That is for testing purpose and was added into this patch by accident. -Original Message- From: beignet-bounces+zhigang.gong=linux.intel@lists.freedesktop.org [mailto:beignet-bounces+zhigang.gong=linux.intel@lists.freedesktop.

[Beignet] [PATCH v2] GBE: Add support for kernel attribute reqd_work_group_size.

2013-11-12 Thread Zhigang Gong
When a kernel has __attribute__((reqd_work_group_size(X, Y, Z))) qualifier, the kernel will only accept that group size. v2: add binary load/store support. v3: fix the MDNode parsing according to spir spec. It's using the following structure rather than a tbaa tree. !spir.functions = !f !0,!1,...

Re: [Beignet] [PATCH v2] GBE: Add support for kernel attribute reqd_work_group_size.

2013-11-12 Thread Yang, Rong R
LGTM, thanks. -Original Message- From: beignet-boun...@lists.freedesktop.org [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Zhigang Gong Sent: Wednesday, November 13, 2013 10:55 AM To: beignet@lists.freedesktop.org Cc: Gong, Zhigang Subject: [Beignet] [PATCH v2] GBE: Add supp

Re: [Beignet] [PATCH] fix builtin function "fdim"

2013-11-12 Thread Yang, Rong R
LGTM. -Original Message- From: beignet-boun...@lists.freedesktop.org [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Homer Hsing Sent: Tuesday, November 12, 2013 1:13 PM To: beignet@lists.freedesktop.org Subject: [Beignet] [PATCH] fix builtin function "fdim" check whether inp

Re: [Beignet] [PATCH] fix builtin function "nextafter"

2013-11-12 Thread Yang, Rong R
LGTM. -Original Message- From: beignet-boun...@lists.freedesktop.org [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Homer Hsing Sent: Tuesday, November 12, 2013 2:37 PM To: beignet@lists.freedesktop.org Subject: [Beignet] [PATCH] fix builtin function "nextafter" fix for some

Re: [Beignet] [PATCH] fix builtin function "ldexp"

2013-11-12 Thread Yang, Rong R
LGTM. -Original Message- From: beignet-boun...@lists.freedesktop.org [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Homer Hsing Sent: Tuesday, November 12, 2013 4:38 PM To: beignet@lists.freedesktop.org Subject: [Beignet] [PATCH] fix builtin function "ldexp" fixed corner cas