mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
Limit direct submission to default context by default
Change-Id: I274d402eead87afca634d3b876fe500777910f96 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
97d9d35ab7
commit
11f76befda
@@ -33,6 +33,8 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
bool isInternalEngine() const { return internalEngine; }
|
||||
bool isRootDevice() const { return rootDevice; }
|
||||
virtual bool isInitialized() const { return true; }
|
||||
bool isDefaultContext() const { return defaultContext; }
|
||||
void setDefaultContext(bool value) { defaultContext = value; }
|
||||
|
||||
protected:
|
||||
OsContext(uint32_t contextId, DeviceBitfield deviceBitfield, aub_stream::EngineType engineType, PreemptionMode preemptionMode,
|
||||
@@ -54,5 +56,6 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
const bool lowPriority = false;
|
||||
const bool internalEngine = false;
|
||||
const bool rootDevice = false;
|
||||
bool defaultContext = false;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user