mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
refactor: remove not needed code.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
18a7a5f6fa
commit
363aca782f
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -355,7 +355,6 @@ inline bool decodeToken(const SPatchItemHeader *token, KernelFromPatchtokens &ou
|
||||
assignToken(out.tokens.allocateStatelessPrintfSurface, token);
|
||||
break;
|
||||
case PATCH_TOKEN_ALLOCATE_STATELESS_EVENT_POOL_SURFACE:
|
||||
assignToken(out.tokens.allocateStatelessEventPoolSurface, token);
|
||||
break;
|
||||
case PATCH_TOKEN_ALLOCATE_STATELESS_DEFAULT_DEVICE_QUEUE_SURFACE:
|
||||
assignToken(out.tokens.allocateStatelessDefaultDeviceQueueSurface, token);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -122,7 +122,6 @@ struct KernelFromPatchtokens {
|
||||
const SPatchAllocateStatelessConstantMemorySurfaceWithInitialization *allocateStatelessConstantMemorySurfaceWithInitialization = nullptr;
|
||||
const SPatchAllocateStatelessGlobalMemorySurfaceWithInitialization *allocateStatelessGlobalMemorySurfaceWithInitialization = nullptr;
|
||||
const SPatchAllocateStatelessPrintfSurface *allocateStatelessPrintfSurface = nullptr;
|
||||
const SPatchAllocateStatelessEventPoolSurface *allocateStatelessEventPoolSurface = nullptr;
|
||||
const SPatchAllocateStatelessDefaultDeviceQueueSurface *allocateStatelessDefaultDeviceQueueSurface = nullptr;
|
||||
const SPatchAllocateSyncBuffer *allocateSyncBuffer = nullptr;
|
||||
const SPatchAllocateRTGlobalBuffer *allocateRTGlobalBuffer = nullptr;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -569,19 +569,6 @@ void dump(const SPatchMediaVFEState &value, std::stringstream &out, const std::s
|
||||
out << indent << "}\n";
|
||||
}
|
||||
|
||||
void dump(const SPatchAllocateStatelessEventPoolSurface &value, std::stringstream &out, const std::string &indent) {
|
||||
out << indent << "struct SPatchAllocateStatelessEventPoolSurface :\n";
|
||||
out << indent << " SPatchItemHeader (";
|
||||
dumpPatchItemHeaderInline(value, out, "");
|
||||
out << ")\n"
|
||||
<< indent << "{\n";
|
||||
out << indent << " uint32_t EventPoolSurfaceIndex;// = " << value.EventPoolSurfaceIndex << "\n";
|
||||
out << indent << " uint32_t SurfaceStateHeapOffset;// = " << value.SurfaceStateHeapOffset << "\n";
|
||||
out << indent << " uint32_t DataParamOffset;// = " << value.DataParamOffset << "\n";
|
||||
out << indent << " uint32_t DataParamSize;// = " << value.DataParamSize << "\n";
|
||||
out << indent << "}\n";
|
||||
}
|
||||
|
||||
void dump(const SPatchAllocateStatelessDefaultDeviceQueueSurface &value, std::stringstream &out, const std::string &indent) {
|
||||
out << indent << "struct SPatchAllocateStatelessDefaultDeviceQueueSurface :\n";
|
||||
out << indent << " SPatchItemHeader (";
|
||||
@@ -740,7 +727,6 @@ std::string asString(const KernelFromPatchtokens &kern) {
|
||||
dumpOrNull(kern.tokens.allocateStatelessConstantMemorySurfaceWithInitialization, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.allocateStatelessGlobalMemorySurfaceWithInitialization, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.allocateStatelessPrintfSurface, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.allocateStatelessEventPoolSurface, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.allocateStatelessDefaultDeviceQueueSurface, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.inlineVmeSamplerInfo, "", stream, indentLevel1);
|
||||
dumpOrNull(kern.tokens.gtpinFreeGrfInfo, "", stream, indentLevel1);
|
||||
|
||||
@@ -42,7 +42,6 @@ void KernelDescriptor::updateCrossThreadDataSize() {
|
||||
&payloadMappings.implicitArgs.globalVariablesSurfaceAddress,
|
||||
&payloadMappings.implicitArgs.globalConstantsSurfaceAddress,
|
||||
&payloadMappings.implicitArgs.privateMemoryAddress,
|
||||
&payloadMappings.implicitArgs.deviceSideEnqueueEventPoolSurfaceAddress,
|
||||
&payloadMappings.implicitArgs.deviceSideEnqueueDefaultQueueSurfaceAddress,
|
||||
&payloadMappings.implicitArgs.systemThreadSurfaceAddress,
|
||||
&payloadMappings.implicitArgs.syncBufferAddress});
|
||||
|
||||
@@ -179,7 +179,6 @@ struct KernelDescriptor {
|
||||
ArgDescPointer globalVariablesSurfaceAddress;
|
||||
ArgDescPointer globalConstantsSurfaceAddress;
|
||||
ArgDescPointer privateMemoryAddress;
|
||||
ArgDescPointer deviceSideEnqueueEventPoolSurfaceAddress;
|
||||
ArgDescPointer deviceSideEnqueueDefaultQueueSurfaceAddress;
|
||||
ArgDescPointer systemThreadSurfaceAddress;
|
||||
ArgDescPointer syncBufferAddress;
|
||||
|
||||
@@ -184,10 +184,6 @@ void populateKernelDescriptor(KernelDescriptor &dst, const SPatchAllocateStatele
|
||||
populatePointerKernelArg(dst, dst.payloadMappings.implicitArgs.printfSurfaceAddress, token, dst.kernelAttributes.bufferAddressingMode);
|
||||
}
|
||||
|
||||
void populateKernelDescriptor(KernelDescriptor &dst, const SPatchAllocateStatelessEventPoolSurface &token) {
|
||||
populatePointerKernelArg(dst, dst.payloadMappings.implicitArgs.deviceSideEnqueueEventPoolSurfaceAddress, token, dst.kernelAttributes.bufferAddressingMode);
|
||||
}
|
||||
|
||||
void populateKernelDescriptor(KernelDescriptor &dst, const SPatchAllocateStatelessDefaultDeviceQueueSurface &token) {
|
||||
populatePointerKernelArg(dst, dst.payloadMappings.implicitArgs.deviceSideEnqueueDefaultQueueSurfaceAddress, token, dst.kernelAttributes.bufferAddressingMode);
|
||||
}
|
||||
@@ -478,7 +474,6 @@ void populateKernelDescriptor(KernelDescriptor &dst, const PatchTokenBinary::Ker
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateStatelessConstantMemorySurfaceWithInitialization);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateStatelessGlobalMemorySurfaceWithInitialization);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateStatelessPrintfSurface);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateStatelessEventPoolSurface);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateStatelessDefaultDeviceQueueSurface);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateSyncBuffer);
|
||||
populateKernelDescriptorIfNotNull(dst, src.tokens.allocateRTGlobalBuffer);
|
||||
|
||||
Reference in New Issue
Block a user