11/*
2- * Copyright (C) 2017-2018 Intel Corporation
2+ * Copyright (C) 2017-2019 Intel Corporation
33 *
44 * SPDX-License-Identifier: MIT
55 *
1818namespace OCLRT {
1919AubCommandStreamReceiverCreateFunc aubCommandStreamReceiverFactory[IGFX_MAX_CORE] = {};
2020
21- CommandStreamReceiver * AUBCommandStreamReceiver::create (const HardwareInfo &hwInfo, const std::string &baseName, bool standalone, ExecutionEnvironment &executionEnvironment ) {
21+ std::string AUBCommandStreamReceiver::createFullFilePath (const HardwareInfo &hwInfo, const std::string &filename ) {
2222 std::string hwPrefix = hardwarePrefix[hwInfo.pPlatform ->eProductFamily ];
2323
2424 // Generate the full filename
2525 const auto >SystemInfo = *hwInfo.pSysInfo ;
2626 std::stringstream strfilename;
2727 uint32_t subSlicesPerSlice = gtSystemInfo.SubSliceCount / gtSystemInfo.SliceCount ;
28- strfilename << hwPrefix << " _" << gtSystemInfo.SliceCount << " x" << subSlicesPerSlice << " x" << gtSystemInfo.MaxEuPerSubSlice << " _" << baseName << " .aub" ;
28+ strfilename << hwPrefix << " _" << gtSystemInfo.SliceCount << " x" << subSlicesPerSlice << " x" << gtSystemInfo.MaxEuPerSubSlice << " _" << filename << " .aub" ;
2929
3030 // clean-up any fileName issues because of the file system incompatibilities
3131 auto fileName = strfilename.str ();
@@ -37,6 +37,11 @@ CommandStreamReceiver *AUBCommandStreamReceiver::create(const HardwareInfo &hwIn
3737 filePath.append (Os::fileSeparator);
3838 filePath.append (fileName);
3939
40+ return filePath;
41+ }
42+
43+ CommandStreamReceiver *AUBCommandStreamReceiver::create (const HardwareInfo &hwInfo, const std::string &baseName, bool standalone, ExecutionEnvironment &executionEnvironment) {
44+ std::string filePath = AUBCommandStreamReceiver::createFullFilePath (hwInfo, baseName);
4045 if (DebugManager.flags .AUBDumpCaptureFileName .get () != " unk" ) {
4146 filePath.assign (DebugManager.flags .AUBDumpCaptureFileName .get ());
4247 }
0 commit comments