mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 10:17:01 +08:00
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:
committed by
Compute-Runtime-Automation
parent
a38b3895c5
commit
10c37fbb78
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user