mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
remove kernelHeader from HeapInfo
Change-Id: Ic2d441df15a7f75b5f3ef41d484969148e59715f
This commit is contained in:
committed by
Chmielewski, Krystian
parent
515b3787f5
commit
3e8f05d702
@@ -145,8 +145,15 @@ void populateKernelInfoArg(KernelInfo &dstKernelInfo, KernelArgInfo &dstKernelIn
|
||||
|
||||
void populateKernelInfo(KernelInfo &dst, const PatchTokenBinary::KernelFromPatchtokens &src, uint32_t gpuPointerSizeInBytes) {
|
||||
UNRECOVERABLE_IF(nullptr == src.header);
|
||||
dst.heapInfo.pKernelHeader = src.header;
|
||||
|
||||
dst.name = std::string(src.name.begin(), src.name.end()).c_str();
|
||||
dst.heapInfo.DynamicStateHeapSize = src.header->DynamicStateHeapSize;
|
||||
dst.heapInfo.GeneralStateHeapSize = src.header->GeneralStateHeapSize;
|
||||
dst.heapInfo.SurfaceStateHeapSize = src.header->SurfaceStateHeapSize;
|
||||
dst.heapInfo.KernelHeapSize = src.header->KernelHeapSize;
|
||||
dst.heapInfo.KernelUnpaddedSize = src.header->KernelUnpaddedSize;
|
||||
dst.shaderHashCode = src.header->ShaderHashCode;
|
||||
|
||||
dst.heapInfo.pKernelHeap = src.isa.begin();
|
||||
dst.heapInfo.pGsh = src.heaps.generalState.begin();
|
||||
dst.heapInfo.pDsh = src.heaps.dynamicState.begin();
|
||||
@@ -217,15 +224,15 @@ void populateKernelInfo(KernelInfo &dst, const PatchTokenBinary::KernelFromPatch
|
||||
|
||||
dst.gpuPointerSize = gpuPointerSizeInBytes;
|
||||
|
||||
if (useKernelDescriptor) {
|
||||
populateKernelDescriptor(dst.kernelDescriptor, src, gpuPointerSizeInBytes);
|
||||
}
|
||||
|
||||
if (dst.patchInfo.dataParameterStream && dst.patchInfo.dataParameterStream->DataParameterStreamSize) {
|
||||
uint32_t crossThreadDataSize = dst.patchInfo.dataParameterStream->DataParameterStreamSize;
|
||||
dst.crossThreadData = new char[crossThreadDataSize];
|
||||
memset(dst.crossThreadData, 0x00, crossThreadDataSize);
|
||||
}
|
||||
|
||||
if (useKernelDescriptor) {
|
||||
populateKernelDescriptor(dst.kernelDescriptor, src, gpuPointerSizeInBytes);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user