Skip to content

Commit 2c21b4a

Browse files
committed
Fixed bug with zero depth ur_rect_region which must be checked before calling func
Fixed functions: - urEnqueueMemBufferWriteRect() - urEnqueueMemBufferReadRect() Signed-off-by: Herman Semenov <[email protected]>
1 parent 37df391 commit 2c21b4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

unified-runtime/scripts/core/enqueue.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ returns:
328328
- "An event in `phEventWaitList` has $X_EVENT_STATUS_ERROR."
329329
- $X_RESULT_ERROR_INVALID_MEM_OBJECT
330330
- $X_RESULT_ERROR_INVALID_SIZE:
331-
- "`region.width == 0 || region.height == 0 || region.width == 0`"
331+
- "`region.width == 0 || region.height == 0 || region.depth == 0`"
332332
- "`bufferRowPitch != 0 && bufferRowPitch < region.width`"
333333
- "`hostRowPitch != 0 && hostRowPitch < region.width`"
334334
- "`bufferSlicePitch != 0 && bufferSlicePitch < region.height * (bufferRowPitch != 0 ? bufferRowPitch : region.width)`"
@@ -406,7 +406,7 @@ returns:
406406
- "An event in `phEventWaitList` has $X_EVENT_STATUS_ERROR."
407407
- $X_RESULT_ERROR_INVALID_MEM_OBJECT
408408
- $X_RESULT_ERROR_INVALID_SIZE:
409-
- "`region.width == 0 || region.height == 0 || region.width == 0`"
409+
- "`region.width == 0 || region.height == 0 || region.depth == 0`"
410410
- "`bufferRowPitch != 0 && bufferRowPitch < region.width`"
411411
- "`hostRowPitch != 0 && hostRowPitch < region.width`"
412412
- "`bufferSlicePitch != 0 && bufferSlicePitch < region.height * (bufferRowPitch != 0 ? bufferRowPitch : region.width)`"

unified-runtime/source/loader/layers/validation/ur_valddi.cpp

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)