From: Dusan Veljko Date: Fri, 13 Nov 2015 16:27:00 +0000 (+0100) Subject: Fixed ConvolveOptimized global_id coefficients X-Git-Tag: 7.0.1-0~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f23d94edf87c64d814f5ca423cb24de362bbb1f9;p=imagemagick Fixed ConvolveOptimized global_id coefficients --- diff --git a/MagickCore/accelerate-private.h b/MagickCore/accelerate-private.h index 3ee25dbdd..19e2d1b9b 100644 --- a/MagickCore/accelerate-private.h +++ b/MagickCore/accelerate-private.h @@ -1553,8 +1553,8 @@ uint MWC64X_NextUint(mwc64x_state_t *s) const uint matte, const ChannelType channel, __local CLPixelType *pixelLocalCache, __local float* filterCache) { int2 blockID; - blockID.x = get_group_id(0); - blockID.y = get_group_id(1); + blockID.x = get_global_id(0) / get_local_size(0); + blockID.y = get_global_id(1) / get_local_size(1); // image area processed by this workgroup int2 imageAreaOrg;