mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Check if direct submission enable in OsContext
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8a700c5187
commit
7c99739b89
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -17,6 +17,9 @@
|
||||
namespace NEO {
|
||||
class OSInterface;
|
||||
|
||||
struct DirectSubmissionProperties;
|
||||
struct HardwareInfo;
|
||||
|
||||
class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
public:
|
||||
OsContext() = delete;
|
||||
@@ -38,6 +41,12 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
bool isDirectSubmissionActive() { return directSubmissionActive; }
|
||||
void setDirectSubmissionActive() { directSubmissionActive = true; }
|
||||
|
||||
bool isDirectSubmissionAvailable(const HardwareInfo &hwInfo, bool &submitOnInit);
|
||||
bool checkDirectSubmissionSupportsEngine(const DirectSubmissionProperties &directSubmissionProperty,
|
||||
aub_stream::EngineType contextEngineType,
|
||||
bool &startOnInit,
|
||||
bool &startInContext);
|
||||
|
||||
protected:
|
||||
OsContext(uint32_t contextId, DeviceBitfield deviceBitfield, aub_stream::EngineType engineType, PreemptionMode preemptionMode,
|
||||
bool lowPriority, bool internalEngine, bool rootDevice)
|
||||
|
||||
Reference in New Issue
Block a user