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

Change-Id: If20cd6b509896a748f74ab5296cb85f2c4a9f04c
Αυτή η υποβολή περιλαμβάνεται σε:
jatang authored and Jason Tang committed 2023-06-06 17:15:34 -04:00
1 γονέας 4f5dfa77bd
υποβολή a456182888
3 files changed
+26 -17

No files matched your search

@@ -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;
}