Commit e0296c411bd4e9a86e85dc87bc6d9f68c7dd3980

Con Kolivas 2012-07-13T21:35:25

Set up buffer8 for scrypt.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/ocl.c b/ocl.c
index 3faba2b..48d78b4 100644
--- a/ocl.c
+++ b/ocl.c
@@ -733,8 +733,10 @@ built:
 	}
 
 #ifdef USE_SCRYPT
-	if (opt_scrypt)
+	if (opt_scrypt) {
 		clState->CLbuffer0 = clCreateBuffer(clState->context, CL_MEM_READ_ONLY, 128, NULL, &status);
+		clState->padbuffer8 = clCreateBuffer(clState->context, CL_MEM_READ_WRITE, 402653184, NULL, &status);
+	}
 #endif
 	clState->outputBuffer = clCreateBuffer(clState->context, CL_MEM_WRITE_ONLY, BUFFERSIZE, NULL, &status);
 	if (status != CL_SUCCESS) {