[Beignet] [PATCH v5 4/4] Add document of video motion estimation support.

2015-11-01 Thread Chuanbo Weng
v3: Fix two typos. Signed-off-by: Chuanbo Weng --- docs/Beignet.mdwn | 1 + docs/howto/video-motion-estimation-howto.mdwn | 79 +++ 2 files changed, 80 insertions(+) create mode 100644

[Beignet] [PATCH v5 3/4] Add basic utest for block_motion_estimate_intel.

2015-11-01 Thread Chuanbo Weng
If the CL device does not support this builtin kernel, the test returns PASS. Signed-off-by: Guo Yejun --- utests/CMakeLists.txt | 1 + .../builtin_kernel_block_motion_estimate_intel.cpp | 109 + utests/utest_helper.hpp

[Beignet] [PATCH v5 2/4] Add extensions intel_accelerator and basic intel_motion_estimation.

2015-11-01 Thread Chuanbo Weng
v2: 1. Just upload the first vme_state. 2. Remove duplicated code in check_opt1_extension. 3. Check image format before cl_gpgpu_bind_image_for_vme. 4. Fix error of getting mv. Because we suppose this kernel run in SIMD16 mode, so dword 0 of grf 1 should be __gen_ocl_region(8,vme_result.s0),

[Beignet] [PATCH v5 1/4] Add built-in function __gen_ocl_vme.

2015-11-01 Thread Chuanbo Weng
__gen_ocl_vme is used for hardware accelerated video motion estimation. It gets payload values as parameters and uses MOV to pass these payload values to VME SEND Message's payload grfs. The int8 return value is used to store SEND Message writeback. v2: Remove unnecessary 5 parameters(src_grf*)

[Beignet] [PATCH 2/6] Debug Support: Pass debug infomation to context

2015-11-01 Thread Bai Yannan
1. Add a new structure DBGInfo into context class, storing debug information. 2. Pass debug information from llvm IR to Context, for subsequently passing, if OCL_PROFILING is true. Signed-off-by: Yannan Bai Signed-off-by: Meng Lv ---

[Beignet] [PATCH 5/6] Debug Support: Pass debug infomation to GenInsn

2015-11-01 Thread Bai Yannan
1. Add a structure DBGInfo in GenEncoder class, storing debug infomation for subsequentlt passing to GenInsn. 2. Add a structure GenInsnDBGInfo in GenInstruction defination. 3. Add a vector in GenEncoder class, storing debug information corresponding to vector. 4. Pass debug

[Beignet] [PATCH 3/6] Debug Support: Pass debug infomation to GEN IR

2015-11-01 Thread Bai Yannan
1. Add a structure DBGInfo in Instruction class, storing debug infomation. 2. Pass debug information from context to GEN IR, if OCL_PROFILING is true. Signed-off-by: Yannan Bai Signed-off-by: Meng Lv --- backend/src/ir/context.cpp | 1 +

[Beignet] [PATCH 6/6] Debug Support: Print line and column NO. with ASM

2015-11-01 Thread Bai Yannan
Print line and column numbers with ASM, if OCL_PROFILING is true. Signed-off-by: Yannan Bai --- backend/src/backend/gen_context.cpp | 7 +++ 1 file changed, 7 insertions(+) diff --git a/backend/src/backend/gen_context.cpp b/backend/src/backend/gen_context.cpp

[Beignet] [PATCH 4/6] Debug Support: Pass debug infomation to SEL IR

2015-11-01 Thread Bai Yannan
1. Add a structure DBGInfo in Opaqueue class, storing debug infomation in selection for subsequentlt passing to selection IR. 2. Add a structure DBGInfo in SelectionInstruction class, storing debug infomation. 3. Pass debug information from GEN IR firstly to selection queue, then

Re: [Beignet] Does LLVM 3.6 still hit a bug?

2015-11-01 Thread Rebecca N. Palmer
When was this workaround done (in particular, is beignet 1.1.1 affected)? As the Khronos test suite is non-public, I can't test this myself. Debian have now announced an intention to remove LLVM 3.5 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803643). An alternative option (which I

[Beignet] [PATCH] Don't read past end of printf format string

2015-11-01 Thread Rebecca N. Palmer
Reading p+1 when p==end is an out of bounds read. Signed-off-by: Rebecca Palmer --- (Found by valgrind while investigating #90472; probably not the actual cause of that crash, but still a bug.) diff --git a/backend/src/llvm/llvm_printf_parser.cpp

Re: [Beignet] [PATCH] Don't read past end of printf format string

2015-11-01 Thread Pan, Xiuli
Hi Rebecaa, Nice catch! This is the root cause of a bug I was recently trying to fix, it will cause printf randomly fail if *(p+1) is accidently is '%'. So could you resend a patch with a start "GBE:." and some more description about the bug fix. Thanks Xiuli Pan -Original

Re: [Beignet] Does LLVM 3.6 still hit a bug?

2015-11-01 Thread Zou, Nanhai
We found that it's a miss understanding of a corner case in type conversion, not a llvm bug. In that case the cl kernel try to convert an overflowed float value to ulong e.g. ulong dst = (ulong)1.8446744073709552e+19f; // this is an overflowed ulong value with llvm3.5 the result value is

[Beignet] [PATCH 1/2] add benckmark for copy data from buffer to buffer

2015-11-01 Thread Meng Mengmeng
Set the data format as 1920 * 1080 four channels and type as char,short and int. Signed-off-by: Meng Mengmeng --- benchmark/CMakeLists.txt| 3 ++- benchmark/benchmark_copy_buffer.cpp | 52 + kernels/bench_copy_buffer.cl

[Beignet] [PATCH 2/2] add benckmark for copy data from image to image

2015-11-01 Thread Meng Mengmeng
Set the data format as 1920 * 1080 four channels(RGBA) and type as char,short and int. Signed-off-by: Meng Mengmeng --- benchmark/CMakeLists.txt | 3 +- benchmark/benchmark_copy_image.cpp | 69 ++