SWDEV-373396 - OCLCreateBuffer: make the CPU checkResult() 4 times faster

Change-Id: If20cd6b509896a748f74ab5296cb85f2c4a9f04c
Este commit está contenido en:
jatang
2023-06-05 18:23:42 -04:00
cometido por Jason Tang
padre 4f5dfa77bd
commit a456182888
Se han modificado 3 ficheros con 26 adiciones y 17 borrados
+2 -2
Ver fichero
@@ -4240,8 +4240,8 @@ RUNTIME_ENTRY(cl_int, clEnqueueFillBuffer,
return CL_INVALID_VALUE;
}
// Offset must be a multiple of pattern_size
if ((offset % pattern_size) != 0) {
// Offset and size must be multiple of pattern_size
if (!(amd::isMultipleOf(offset, pattern_size) && amd::isMultipleOf(size, pattern_size))) {
return CL_INVALID_VALUE;
}