performance: Ensure hostptrs removed before creating new one

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-09-18 12:32:23 +00:00
committed by Compute-Runtime-Automation
parent ebc19b4a70
commit ac1d203555
14 changed files with 94 additions and 63 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -14,5 +14,8 @@ class DeferrableDeletion : public IDNode<DeferrableDeletion> {
template <typename... Args>
static DeferrableDeletion *create(Args... args);
virtual bool apply() = 0;
bool isExternalHostptr() const { return externalHostptr; }
bool externalHostptr = false;
};
} // namespace NEO