Revert "SWDEV-510271 - [6.4 Preview] fix hipCreateSurfaceObject & hipDestroySurfaceObject during stream capture"
This reverts commit82f78ce187. Reason for revert: 6.4 Preview changes need not be merged to amd-staging as of now Change-Id: Ifba0c8a248bc40deaa9c59b7f2901531300e5ea4 [ROCm/clr commit:4206405514]
Этот коммит содержится в:
@@ -66,12 +66,6 @@ hipError_t ihipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject,
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
|
||||
if (DEBUG_HIP_7_PREVIEW & amd::CHANGE_HIP_STREAM_CAPTURE_API) {
|
||||
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
}
|
||||
|
||||
amd::Image* image = nullptr;
|
||||
cl_mem memObj = reinterpret_cast<cl_mem>(pResDesc->res.array.array->data);
|
||||
if (!is_valid(memObj)) {
|
||||
@@ -102,12 +96,6 @@ hipError_t ihipDestroySurfaceObject(hipSurfaceObject_t surfaceObject) {
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
if (DEBUG_HIP_7_PREVIEW & amd::CHANGE_HIP_STREAM_CAPTURE_API) {
|
||||
if (!hip::tls.capture_streams_.empty() || !g_captureStreams.empty()) {
|
||||
HIP_RETURN(hipErrorStreamCaptureUnsupported);
|
||||
}
|
||||
}
|
||||
|
||||
return ihipFree(surfaceObject);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user