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]
Этот коммит содержится в:
Marko Arandjelovic
2024-10-07 16:18:30 +02:00
родитель 8647bb483b
Коммит cf8eeabfe2
5 изменённых файлов: 74 добавлений и 14 удалений
+2 -2
Просмотреть файл
@@ -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;