[Beignet] [PATCH 1/3] clang 3.9 will report error when use read_write in OpenCL-1.2.

xionghu.luo at intel.com xionghu.luo at intel.com
Mon Mar 20 14:34:04 UTC 2017


From: Luo Xionghu <xionghu.luo at intel.com>

Signed-off-by: Luo Xionghu <xionghu.luo at intel.com>
---
 kernels/image_planar_yuv.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernels/image_planar_yuv.cl b/kernels/image_planar_yuv.cl
index 0c49a67..de6c4cd 100644
--- a/kernels/image_planar_yuv.cl
+++ b/kernels/image_planar_yuv.cl
@@ -1,5 +1,5 @@
 __kernel void
-image_planar_total(__read_write image2d_t srcNV, __read_write image2d_t dstNV)
+image_planar_total(__read_only image2d_t srcNV, __write_only image2d_t dstNV)
 {
   const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_FILTER_NEAREST;
   int2 loc = (int2)(get_global_id(0), get_global_id(1));
-- 
2.5.0



More information about the Beignet mailing list