SWDEV-429053 - Add check for StreamLegacy

Signed-off-by: sdashmiz <shadi.dashmiz@amd.com>
Change-Id: I402185a3b81935aaa1c8c4963407b8de21c72d8a
This commit is contained in:
sdashmiz
2024-01-12 10:51:14 -05:00
committed by Maneesh Gupta
parent 4f7830c998
commit 627ccfa502
7 changed files with 29 additions and 24 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ void Stream::Destroy(hip::Stream* stream) {
// ================================================================================================
bool isValid(hipStream_t& stream) {
// NULL stream is always valid
if (stream == nullptr) {
if (stream == nullptr || stream == hipStreamLegacy) {
return true;
}