utests: add access qualifier for image in kernel

Submitted by Guo Yejun on June 29, 2016, 12:09 a.m.


Message ID 1467158985-7497-1-git-send-email-yejun.guo@intel.com
State New
Headers show
Series "utests: add access qualifier for image in kernel" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Guo Yejun June 29, 2016, 12:09 a.m.
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@intel.com>
 kernels/image_1D_buffer.cl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);