[Beignet] [PATCH] runtime: The depth should be 1 for CL_MEM_OBJECT_IMAGE2D in beignet's implementation.

2016-06-06 Thread Chuanbo Weng
Reported by Feng Yuan. Signed-off-by: Chuanbo Weng --- src/cl_mem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cl_mem.c b/src/cl_mem.c index 229bc0a..79cd41d 100644 --- a/src/cl_mem.c +++ b/src/cl_mem.c @@ -2194,7 +2194,7 @@ LOCAL cl_mem cl_mem_new_libva_image(cl

[Beignet] [PATCH] Report build failures in backend to the build log

2016-06-06 Thread Rebecca N. Palmer
As noted at llvm_gen_backend:94, we currently lack a mechanism for reporting failures in backend (beignet-managed) compiler passes to the build log, and instead print the error to stderr and assert-fail. This patch creates such a mechanism, and uses it for "function not found". Please note that it

[Beignet] [PATCH] Runtime: Add assert of pthread_getspecific.

2016-06-06 Thread Yang Rong
Signed-off-by: Yang Rong --- src/cl_thread.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/cl_thread.c b/src/cl_thread.c index 40929f2..0780513 100644 --- a/src/cl_thread.c +++ b/src/cl_thread.c @@ -145,7 +145,7 @@ cl_event get_current_event(cl_command_qu

Re: [Beignet] [PATCH 4/5] Backend: Optimization internal math, use mad

2016-06-06 Thread Song, Ruiling
The first four patches look good. But personally I don't think the 5th patch is proper for merge, although I am not good at copyright topics. Thanks! Ruiling ___ Beignet mailing list Beignet@lists.freedesktop.org https://lists.freedesktop.org/mailman/li

[Beignet] [PATCH 2/2] GBE: warning when the GEN binary version mismatch.

2016-06-06 Thread Yang Rong
GENC is indicate the binary type, so use the first byte of GEN binary as binary version, if mismatch, output a warning. Signed-off-by: Yang Rong --- backend/src/backend/gen_program.cpp | 24 +++- backend/src/gbe_bin_generater.cpp | 8 src/cl_program.c

[Beignet] [PATCH 1/2] GBE: change GEN binary format.

2016-06-06 Thread Yang Rong
Change all size_t to uint32_t when generate GEN binary, size_t is non compat between 32bit system and 64bit system, and uint32_t is enough. Signed-off-by: Yang Rong --- backend/src/backend/gen_program.cpp | 2 +- backend/src/backend/gen_program.hpp | 2 +- backend/src/backend/program.cpp |