AUB capture in TBX mode to respect the AUBDumpCaptureFileName debug variable

Change-Id: I0a340ac5be58134237aa2c6513f39dc5d7026634
Signed-off-by: Slawomir Milczarek <slawomir.milczarek@intel.com>
This commit is contained in:
Slawomir Milczarek
2019-10-17 22:12:31 +02:00
committed by sys_ocldev
parent 2196f7e216
commit 3727968488
2 changed files with 15 additions and 0 deletions

View File

@@ -154,6 +154,9 @@ CommandStreamReceiver *TbxCommandStreamReceiverHw<GfxFamily>::create(const std::
auto &hwHelper = HwHelper::get(hwInfo->platform.eRenderCoreFamily);
auto localMemoryEnabled = hwHelper.getEnableLocalMemory(*hwInfo);
auto fullName = AUBCommandStreamReceiver::createFullFilePath(*hwInfo, baseName);
if (DebugManager.flags.AUBDumpCaptureFileName.get() != "unk") {
fullName.assign(DebugManager.flags.AUBDumpCaptureFileName.get());
}
executionEnvironment.initAubCenter(localMemoryEnabled, fullName, CommandStreamReceiverType::CSR_TBX_WITH_AUB);
csr = new CommandStreamReceiverWithAUBDump<TbxCommandStreamReceiverHw<GfxFamily>>(baseName, executionEnvironment);