1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Set up buffer8 for scrypt.

This commit is contained in:
Con Kolivas 2012-07-13 21:35:25 +10:00
parent 8fd3bf74df
commit e0296c411b

4
ocl.c
View File

@ -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) {