Browse Source

Bugfix: opencl: Correctly handle non-goffset kernels

Luke Dashjr 11 years ago
parent
commit
2291622251
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ocl.c

+ 2 - 2
ocl.c

@@ -818,9 +818,9 @@ bool opencl_load_kernel(struct cgpu_info * const cgpu, _clState * const clState,
 			kernel_goffset_support = 1;
 			kernel_goffset_support = 1;
 		else
 		else
 		if (strstr(source, " base,"))
 		if (strstr(source, " base,"))
-			kernel_goffset_support = 2;
-		else
 			kernel_goffset_support = 0;
 			kernel_goffset_support = 0;
+		else
+			kernel_goffset_support = 2;
 		bool device_goffset_support = false;
 		bool device_goffset_support = false;
 		switch (data->use_goffset)
 		switch (data->use_goffset)
 		{
 		{