Add infrastructure to enable direct submission

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2021-03-31 13:06:23 +00:00
committed by Compute-Runtime-Automation
parent 889f1d0ae5
commit 1921bfb3dc
8 changed files with 39 additions and 1 deletions

View File

@@ -14,7 +14,13 @@
namespace NEO {
bool OsContext::isDirectSubmissionAvailable(const HardwareInfo &hwInfo, bool &submitOnInit) {
if (DebugManager.flags.EnableDirectSubmission.get() == 1) {
bool enableDirectSubmission = this->isDirectSubmissionSupported(hwInfo);
if (DebugManager.flags.EnableDirectSubmission.get() != -1) {
enableDirectSubmission = DebugManager.flags.EnableDirectSubmission.get();
}
if (enableDirectSubmission) {
auto contextEngineType = this->getEngineType();
const DirectSubmissionProperties &directSubmissionProperty =
hwInfo.capabilityTable.directSubmissionEngines.data[contextEngineType];