mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
3e4be8d78e
commit
68e01dd736
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user