blob: 035c02a1d9a3143266290c9f2ba47425bfc51b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
__kernel void
test_movforphi_undef(__read_only image2d_t src, __write_only image2d_t dst, sampler_t sampler)
{
int2 coord, dstCoord;
int4 color;
int x = get_global_id(0);
int y = get_global_id(1);
dstCoord.x = x;
dstCoord.y = y;
coord.y = y;
for(int j = -8; j < 2; j++)
{
coord.x = j + x;
color = read_imagei(src, sampler, coord);
if (j == 1 + x)
write_imagei(dst, dstCoord, color);
}
}
|