performance: optimize checking if ga is imported 1/2

Related-To: NEO-13163
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-09-04 10:10:23 +00:00
committed by Compute-Runtime-Automation
parent 482c5ce11b
commit f15c42bd11
7 changed files with 21 additions and 33 deletions

View File

@@ -362,6 +362,14 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation>, NEO::NonCopyableAn
this->explicitlyMadeResident = explicitlyMadeResident;
}
void setIsImported() {
isImported = true;
}
bool getIsImported() const {
return isImported;
}
protected:
struct UsageInfo {
TaskCountType taskCount = objectNotUsed;
@@ -428,6 +436,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation>, NEO::NonCopyableAn
bool shareableHostMemory = false;
bool cantBeReadOnly = false;
bool explicitlyMadeResident = false;
bool isImported = false;
};
static_assert(NEO::NonCopyableAndNonMovable<GraphicsAllocation>);