[Beignet] Bug#724808: ocl-icd-libopencl1: Handle invalid object references

2013-09-27 Thread Simon Richter
Package: ocl-icd-libopencl1 Version: 1.3-3+debug Severity: minor Running the Piglit test suite reports several errors where NULL pointers are dereferenced in libOpenCL.so. Apparently, OpenCL implementations are expected to recognize NULL pointers as invalid object references. I could not find scr

[Beignet] Failure to compile more complex kernels

2013-09-27 Thread Simon Richter
Hi, With luxrays, I still keep running into ASSERTION FAILED: it != instrinsicMap.map.end() at file /home/geier/debian/beignet-0.2+git20130928+187c17e/backend/src/llvm/llvm_scalarize.cpp, function bool gbe::Scalarize::scalarizeFuncCall(llvm::CallInst*), line 635 Stack dump: 0. Running pass

[Beignet] [PATCH] ICD dispatch table must be first

2013-09-27 Thread Simon Richter
The ICD loader expects the first member of any dispatchable object to be the dispatch table. Signed-off-by: Simon Richter --- src/cl_mem.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cl_mem.h b/src/cl_mem.h index dc9192a..bc6d526 100644 --- a/src/cl_mem.h +++ b/src

Re: [Beignet] [PATCH 2/3] add clCreateBufferFromLibva() api

2013-09-27 Thread Simon Richter
Hi, > This patch and the following patch is to introduce new API to cl lib. > It's better to put it into include/CL/cl_intel.h, and the naming rule > is to follow other non-standard API : clMapBufferIntel(cl_mem, cl_int*); > clXXXIntel. In addition, extension functions need to be listed in the re