[Beignet] [PATCH 1/5] Runtime: Fix accesss quilifer for internal kernels
Xiuli Pan
xiuli.pan at intel.com
Thu Aug 4 06:34:02 UTC 2016
From: Pan Xiuli <xiuli.pan at intel.com>
Image dst should be write_only.
Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
src/kernels/cl_internal_copy_buffer_to_image_2d.cl | 2 +-
src/kernels/cl_internal_copy_buffer_to_image_3d.cl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/kernels/cl_internal_copy_buffer_to_image_2d.cl b/src/kernels/cl_internal_copy_buffer_to_image_2d.cl
index a218b58..e162393 100644
--- a/src/kernels/cl_internal_copy_buffer_to_image_2d.cl
+++ b/src/kernels/cl_internal_copy_buffer_to_image_2d.cl
@@ -1,4 +1,4 @@
-kernel void __cl_copy_buffer_to_image_2d(__read_only image2d_t image, global uchar* buffer,
+kernel void __cl_copy_buffer_to_image_2d(__write_only image2d_t image, global uchar* buffer,
unsigned int region0, unsigned int region1, unsigned int region2,
unsigned int dst_origin0, unsigned int dst_origin1, unsigned int dst_origin2,
unsigned int src_offset)
diff --git a/src/kernels/cl_internal_copy_buffer_to_image_3d.cl b/src/kernels/cl_internal_copy_buffer_to_image_3d.cl
index 84d3b27..5f0e890 100644
--- a/src/kernels/cl_internal_copy_buffer_to_image_3d.cl
+++ b/src/kernels/cl_internal_copy_buffer_to_image_3d.cl
@@ -1,4 +1,4 @@
-kernel void __cl_copy_buffer_to_image_3d(__read_only image3d_t image, global uchar* buffer,
+kernel void __cl_copy_buffer_to_image_3d(__write_only image3d_t image, global uchar* buffer,
unsigned int region0, unsigned int region1, unsigned int region2,
unsigned int dst_origin0, unsigned int dst_origin1, unsigned int dst_origin2,
unsigned int src_offset)
--
2.7.4
More information about the Beignet
mailing list