Browse Source

Merge branch 'bugfix_ocl_dynintensity_flush' into bfgminer

Luke Dashjr 13 years ago
parent
commit
d34f40f2fb
1 changed files with 2 additions and 3 deletions
  1. 2 3
      driver-opencl.c

+ 2 - 3
driver-opencl.c

@@ -1721,10 +1721,9 @@ static void opencl_free_work(struct thr_info *thr, struct work *work)
 	_clState *clState = clStates[thr_id];
 	struct cgpu_info *gpu = thr->cgpu;
 
-	if (gpu->dynamic)
-		return;
+	if (!gpu->dynamic)
+		clFinish(clState->commandQueue);
 
-	clFinish(clState->commandQueue);
 	if (thrdata->res[FOUND]) {
 		thrdata->last_work = &thrdata->_last_work;
 		memcpy(thrdata->last_work, work, sizeof(*thrdata->last_work));