mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
482c5ce11b
commit
f15c42bd11
@@ -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>);
|
||||
|
||||
Reference in New Issue
Block a user