Debug flag to override fence start value

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-12-01 14:08:43 +00:00
committed by Compute-Runtime-Automation
parent 03e19abbe5
commit 6f283d7bf5
4 changed files with 23 additions and 1 deletions

View File

@@ -30,6 +30,10 @@ DrmDirectSubmission<GfxFamily, Dispatcher>::DrmDirectSubmission(const DirectSubm
this->disableMonitorFence = DebugManager.flags.DirectSubmissionDisableMonitorFence.get();
}
if (DebugManager.flags.OverrideUserFenceStartValue.get() != -1) {
this->completionFenceValue = static_cast<decltype(completionFenceValue)>(DebugManager.flags.OverrideUserFenceStartValue.get());
}
auto osContextLinux = static_cast<OsContextLinux *>(&this->osContext);
auto subDevices = osContextLinux->getDeviceBitfield();