Revert "Correct set pitch in clEnqueueCopyBufferRect"

This reverts commit a0f3e868a1.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2021-02-26 12:56:27 +01:00
committed by Compute-Runtime-Automation
parent 3e4be8d78e
commit 68e01dd736
5 changed files with 11 additions and 245 deletions

View File

@@ -558,10 +558,6 @@ bool Buffer::bufferRectPitchSet(const size_t *bufferOrigin,
if (hostSlicePitch == 0)
hostSlicePitch = region[1] * hostRowPitch;
if (region[0] == 0 || region[1] == 0 || region[2] == 0) {
return false;
}
if (bufferRowPitch < region[0] ||
hostRowPitch < region[0]) {
return false;