mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Refactor bo pinning
Change-Id: I451fa5225096829ea7131d159eb59f906817b2cd Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
d27374b468
commit
574cd634b9
@@ -35,6 +35,8 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
virtual bool isInitialized() const { return true; }
|
||||
bool isDefaultContext() const { return defaultContext; }
|
||||
void setDefaultContext(bool value) { defaultContext = value; }
|
||||
bool isDirectSubmissionActive() { return directSubmissionActive; }
|
||||
void setDirectSubmissionActive() { directSubmissionActive = true; }
|
||||
|
||||
protected:
|
||||
OsContext(uint32_t contextId, DeviceBitfield deviceBitfield, aub_stream::EngineType engineType, PreemptionMode preemptionMode,
|
||||
@@ -57,5 +59,6 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
const bool internalEngine = false;
|
||||
const bool rootDevice = false;
|
||||
bool defaultContext = false;
|
||||
bool directSubmissionActive = false;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user