Merge pull request #6266 from gongzg:master

This commit is contained in:
Alexander Alekhin 2016-03-15 12:51:20 +00:00
commit 97d8ca3464

View File

@ -428,6 +428,7 @@ __kernel void stage2_hysteresis(__global uchar *map_ptr, int map_step, int map_o
int mod = l_counter % LOCAL_TOTAL;
int pix_per_thr = l_counter / LOCAL_TOTAL + ((lid < mod) ? 1 : 0);
barrier(CLK_LOCAL_MEM_FENCE);
for (int i = 0; i < pix_per_thr; ++i)
{
int index = atomic_dec(&l_counter) - 1;