SWDEV-489619 - Fix memcpy tests with capture stream enabled
- Added missing validation as graph node should not be created
if parameters are invalid
- Fix conversion of input params to graphNode params
Change-Id: I37ab04942b5fb2eb07386850cb7dbbf26f9ca967
[ROCm/clr commit: db8527f655]
Этот коммит содержится в:
@@ -2667,8 +2667,8 @@ hipError_t ihipMemcpy3D_validate(const hipMemcpy3DParms* p) {
|
||||
}
|
||||
|
||||
if (p->dstArray == nullptr && p->srcArray == nullptr) {
|
||||
if ((p->extent.width + p->dstPos.x > p->dstPtr.pitch) ||
|
||||
(p->extent.width + p->srcPos.x > p->srcPtr.pitch)) {
|
||||
if ((p->dstPtr.pitch != 0 && (p->extent.width + p->dstPos.x > p->dstPtr.pitch)) ||
|
||||
(p->srcPtr.pitch != 0 && (p->extent.width + p->srcPos.x > p->srcPtr.pitch))) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
auto totalExtentBytes = p->extent.width * p->extent.height * p->extent.depth;
|
||||
|
||||
Ссылка в новой задаче
Block a user