mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 00:58:39 +08:00
Add infrastructure to enable direct submission
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
889f1d0ae5
commit
1921bfb3dc
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user