Perform deep-copy of helper's name

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel
2022-08-23 15:50:33 +00:00
committed by Compute-Runtime-Automation
parent 595cfebaef
commit 60451b590d
2 changed files with 4 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -309,7 +309,7 @@ struct LrcaHelper {
int aubHintCommandBuffer = DataTypeHintValues::TraceCommandBuffer;
int aubHintBatchBuffer = DataTypeHintValues::TraceBatchBuffer;
const char *name = "XCS";
std::string name = "XCS";
uint32_t mmioBase = 0;
size_t sizeLRCA = 0x2000;
@@ -400,8 +400,7 @@ struct LrcaHelperCcs : public LrcaHelper {
struct LrcaHelperLinkBcs : public LrcaHelperBcs {
LrcaHelperLinkBcs(uint32_t base, uint32_t engineId) : LrcaHelperBcs(base) {
std::string nameStr("BCS" + std::to_string(engineId));
name = nameStr.c_str();
name = "BCS" + std::to_string(engineId);
}
};