]> granicus.if.org Git - imagemagick/commitdiff
Fixed ConvolveOptimized global_id coefficients
authorDusan Veljko <v_duschan@hotmail.com>
Fri, 13 Nov 2015 16:27:00 +0000 (17:27 +0100)
committerdirk <dirk@git.imagemagick.org>
Thu, 11 Feb 2016 22:02:45 +0000 (23:02 +0100)
MagickCore/accelerate-private.h

index 3ee25dbdd1b2b866a0415555c61de069d527cb21..19e2d1b9b66fe1d9e9db61c25af075ea375561a5 100644 (file)
@@ -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;