From d35aed5012abd9171372ed0cfdbd07cbe84ca35c Mon Sep 17 00:00:00 2001 From: Rakesh Roy Date: Fri, 7 Mar 2025 06:41:55 -0500 Subject: [PATCH] Revert "SWDEV-510271 - [6.4 Preview] fix hipCreateSurfaceObject & hipDestroySurfaceObject during stream capture" This reverts commit 82f78ce187810d0f621f1c7457385bbee8c8d620. Reason for revert: 6.4 Preview changes need not be merged to amd-staging as of now Change-Id: Ifba0c8a248bc40deaa9c59b7f2901531300e5ea4 [ROCm/clr commit: 42064055149572fce783e144a81cf07ea66a317b] --- projects/clr/hipamd/src/hip_surface.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/projects/clr/hipamd/src/hip_surface.cpp b/projects/clr/hipamd/src/hip_surface.cpp index 6b62e025c7..cd40e254ef 100644 --- a/projects/clr/hipamd/src/hip_surface.cpp +++ b/projects/clr/hipamd/src/hip_surface.cpp @@ -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(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); }