diff options
author | Junyan He <junyan.he@linux.intel.com> | 2014-06-13 15:07:44 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-13 16:44:54 +0800 |
commit | 7508f4be683726f499870f98ac5c94041e0b7a79 (patch) | |
tree | 07bfbdde9ee991396209acc9712b5e98c015cfab /kernels/test_copy_image_1d.cl | |
parent | b0aaecc42e292e455289d728dabe06544f85609f (diff) |
Add test cases for 1d image fill and copy
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'kernels/test_copy_image_1d.cl')
-rw-r--r-- | kernels/test_copy_image_1d.cl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernels/test_copy_image_1d.cl b/kernels/test_copy_image_1d.cl new file mode 100644 index 00000000..88428bbd --- /dev/null +++ b/kernels/test_copy_image_1d.cl @@ -0,0 +1,9 @@ +__kernel void +test_copy_image_1d(__read_only image1d_t src, __write_only image1d_t dst, sampler_t sampler) +{ + int coord; + int4 color; + coord = (int)get_global_id(0); + color = read_imagei(src, sampler, coord); + write_imagei(dst, coord, color); +} |