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

Change-Id: If20cd6b509896a748f74ab5296cb85f2c4a9f04c
This commit is contained in:
jatang
2023-06-05 18:23:42 -04:00
committed by Jason Tang
parent 4f5dfa77bd
commit a456182888
3 changed files with 26 additions and 17 deletions
+2 -2
View File
@@ -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;
}