mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Revert "refactor: remove excess cast to C-string and add const reference"
This reverts commit 34ee40393f.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6a7bee67e9
commit
242a31a024
@@ -113,7 +113,7 @@ void populateKernelDescriptor(KernelDescriptor &dst, const SPatchDataParameterSt
|
||||
|
||||
void populateKernelDescriptor(KernelDescriptor &dst, const SPatchKernelAttributesInfo &token) {
|
||||
constexpr ConstStringRef attributeReqdSubGroupSizeBeg = "intel_reqd_sub_group_size(";
|
||||
const auto &attributes = std::string(reinterpret_cast<const char *>(&token + 1), token.AttributesSize);
|
||||
std::string attributes = std::string(reinterpret_cast<const char *>(&token + 1), token.AttributesSize).c_str();
|
||||
dst.kernelMetadata.kernelLanguageAttributes = attributes;
|
||||
auto it = attributes.find(attributeReqdSubGroupSizeBeg.begin());
|
||||
if (it != std::string::npos) {
|
||||
@@ -460,7 +460,7 @@ void populateArgDescriptor(KernelDescriptor &dst, size_t argNum, const PatchToke
|
||||
|
||||
void populateKernelDescriptor(KernelDescriptor &dst, const PatchTokenBinary::KernelFromPatchtokens &src, uint32_t gpuPointerSizeInBytes) {
|
||||
UNRECOVERABLE_IF(nullptr == src.header);
|
||||
dst.kernelMetadata.kernelName = std::string(src.name.begin(), src.name.end());
|
||||
dst.kernelMetadata.kernelName = std::string(src.name.begin(), src.name.end()).c_str();
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.executionEnvironment);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.samplerStateArray);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.bindingTableState);
|
||||
|
||||
Reference in New Issue
Block a user