[Beignet] [PATCH V2] correct ASM output for byte scattered read/write

2016-02-04 Thread Guo Yejun
v2: correct the simd mode output SIMD8 instead of SIMD4*2 Signed-off-by: Guo Yejun --- backend/src/backend/gen/gen_mesa_disasm.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/backend/src/backend/gen/gen_mesa_disasm.c b/backend/src/backend/gen/gen_

[Beignet] [PATCH 1/3] correct the dst type to ud instead of uw for byte scattered read

2016-02-04 Thread Guo Yejun
the destination type is ud, not uw. Correct it to make the ASM more readable. Signed-off-by: Guo Yejun --- backend/src/backend/gen_encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/backend/gen_encoder.cpp b/backend/src/backend/gen_encoder.cpp index 9f9e

[Beignet] [PATCH 3/3] enable byte gather for vload2/3/4/8(offset, char*) on SKL and BXT

2016-02-04 Thread Guo Yejun
currently, the unaligned bytes gather is implemented with readByteAsDWord for a good performance, change back to native byte scattered read for new GPU generations with better performance. as for vload16(1/2/.../15, global char*), the native byte scattered read is not good, so use the original met

[Beignet] [PATCH 2/3] fix a potential issue of SEL IR optimization when subphysical is true

2016-02-04 Thread Guo Yejun
Once the byte scattered read with more than one byte is enabled, there will same ir reg with different subnr, it makes the current logic in SELECTION IR optmization (local copy propogation) incorrect, so fix the issue by scanning all the map. Signed-off-by: Guo Yejun --- backend/src/backend/gen_

[Beignet] [Printf v2][PATCH 07/12] Implement emision of printf instruction.

2016-02-04 Thread yan . wang
From: Yan Wang Contributor: Junyan He Signed-off-by: Yan Wang --- backend/src/llvm/llvm_gen_backend.cpp | 95 +-- 1 file changed, 80 insertions(+), 15 deletions(-) diff --git a/backend/src/llvm/llvm_gen_backend.cpp b/backend/src/llvm/llvm_gen_backend.cpp index

Re: [Beignet] [Printf v2][PATCH 07/12] Add the implementation of printf ir instruction.

2016-02-04 Thread yan . wang
Sorry. I have re-sent 7/12. Yan Wang > patch of 06 and 07 have the same title? > I think it is a typo here. > Please correct it. > All the other things are OK, just rename this one and > the whole patchset can be pushed later. > > Also can push my patch about printf test cases together. > > On Mo

Re: [Beignet] [Printf v2][PATCH 07/12] Add the implementation of printf ir instruction.

2016-02-04 Thread He Junyan
patch of 06 and 07 have the same title? I think it is a typo here. Please correct it. All the other things are OK, just rename this one and the whole patchset can be pushed later. Also can push my patch about printf test cases together. On Mon, Feb 01, 2016 at 03:42:16PM +0800, yan.w...@linux.int