[Beignet] [PATCH] utests: add access qualifier for image in kernel
Guo Yejun
yejun.guo at intel.com
Wed Jun 29 00:09:45 UTC 2016
the default access qualifier is __read_only, which is not correct
for the image to be write in kernel, set the qualifer explictly.
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
kernels/image_1D_buffer.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernels/image_1D_buffer.cl b/kernels/image_1D_buffer.cl
index 2c1da69..e82aa08 100644
--- a/kernels/image_1D_buffer.cl
+++ b/kernels/image_1D_buffer.cl
@@ -1,4 +1,4 @@
-__kernel void image_1D_buffer(image1d_buffer_t image1, image1d_buffer_t image2)
+__kernel void image_1D_buffer(__read_only image1d_buffer_t image1, __write_only image1d_buffer_t image2)
{
int x = get_global_id(0);
--
1.9.1
More information about the Beignet
mailing list