Revert "fix: correctly set unpacked device binary prior decoding"

This reverts commit 60d5484e6b.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-09-17 04:39:41 +02:00
committed by Compute-Runtime-Automation
parent a38b3895c5
commit 10c37fbb78
7 changed files with 9 additions and 196 deletions

View File

@@ -661,21 +661,15 @@ void Linker::resolveImplicitArgs(const KernelDescriptorsT &kernelDescriptors, De
kernelDescriptor.kernelAttributes.flags.requiresImplicitArgs |= addImplcictArgs;
if (kernelDescriptor.kernelAttributes.flags.requiresImplicitArgs) {
uint64_t implicitArgsSize = 0;
uint8_t version = kernelDescriptor.kernelMetadata.indirectAccessBuffer;
if (version == 0) {
version = pDevice->getGfxCoreHelper().getImplicitArgsVersion();
}
if (version == 0) {
if (pDevice->getGfxCoreHelper().getImplicitArgsVersion() == 0) {
implicitArgsSize = ImplicitArgsV0::getAlignedSize();
} else if (version == 1) {
} else if (pDevice->getGfxCoreHelper().getImplicitArgsVersion() == 1) {
implicitArgsSize = ImplicitArgsV1::getAlignedSize();
} else if (version == 2) {
} else if (pDevice->getGfxCoreHelper().getImplicitArgsVersion() == 2) {
implicitArgsSize = ImplicitArgsV2::getAlignedSize();
} else {
UNRECOVERABLE_IF(true);
}
// Choose relocation size based on relocation type
auto patchSize = pImplicitArgsReloc.second == RelocationInfo::Type::address ? 8 : 4;
patchWithRequiredSize(pImplicitArgsReloc.first, patchSize, implicitArgsSize);