mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
fix: fail when invalid zebin is decoded
- bindless + bindful accesses in single kernel are not supported Related-To: NEO-7063 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
1707434591
commit
77b817a15c
@@ -1000,7 +1000,8 @@ DecodeError decodeZeInfoKernelPayloadArguments(KernelDescriptor &dst, Yaml::Yaml
|
||||
}
|
||||
|
||||
if ((bindlessBufferAccess && bindfulBufferAccess) ||
|
||||
(bindlessImageAccess && bindfulImageAccess)) {
|
||||
(bindlessImageAccess && bindfulImageAccess) ||
|
||||
((bindlessBufferAccess || bindlessImageAccess) && dst.payloadMappings.bindingTable.numEntries > 0)) {
|
||||
outErrReason.append("DeviceBinaryFormat::zebin::.ze_info : bindless and bindful addressing modes must not be mixed.\n");
|
||||
return DecodeError::invalidBinary;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user