summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2014-10-22 15:50:59 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-10-23 09:43:11 +0800
commit99f2a4ebf288c93a9ed244beccb3ab94a9d246f9 (patch)
tree21ef2d65039a1c3ed129f4dd386b5230ecfc61f0 /kernels
parent33bbe06cc67a034d66bf419c242f6d0cb8ac9248 (diff)
downloadbeignet-99f2a4ebf288c93a9ed244beccb3ab94a9d246f9.tar.gz
Add the test case for image 1d array fill
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/test_fill_image_1d_array.cl11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernels/test_fill_image_1d_array.cl b/kernels/test_fill_image_1d_array.cl
new file mode 100644
index 00000000..ee742f47
--- /dev/null
+++ b/kernels/test_fill_image_1d_array.cl
@@ -0,0 +1,11 @@
+__kernel void
+test_fill_image_1d_array(__write_only image1d_array_t dst)
+{
+ int coordx;
+ int coordy;
+ coordx = (int)get_global_id(0);
+ coordy = (int)get_global_id(1);
+ uint4 color4 = {0, 1, 2 ,3};
+ if (coordy < 7)
+ write_imageui(dst, (int2)(coordx, coordy), color4);
+}