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:
Zbigniew Zdanowicz
2020-03-06 19:02:24 +01:00
committed by sys_ocldev
parent 97d9d35ab7
commit 11f76befda
8 changed files with 76 additions and 7 deletions

View File

@@ -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