summaryrefslogtreecommitdiff
path: root/kernels/compiler_region.cl
blob: d74ac7d3c54ec5befc668a84aee721c14d5e390a (plain)
1
2
3
4
5
6
7
8
9
10
__kernel void
compiler_region(__global uint *src, __global uint *dst)
{
  __gen_ocl_force_simd16();
  int id = (int)get_global_id(0);
  const int x0 = src[id];
  const int x1 = src[id+16];
  dst[id] = __gen_ocl_region(0, 16, 8, 2, x0, x1);
}