fix: adjust numArgsStateful based on binding table entries

- global and const buffer may have BTI index allocated, ssh template
must be allocated with size for all stateful args

Related-To: NEO-7063

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2023-11-23 09:37:14 +00:00
committed by Compute-Runtime-Automation
parent c281b66587
commit 7ffd151ac3
3 changed files with 31 additions and 1 deletions

View File

@@ -558,6 +558,8 @@ DecodeError decodeZeInfoKernelEntry(NEO::KernelDescriptor &dst, NEO::Yaml::YamlP
if (dst.payloadMappings.bindingTable.numEntries > 0U) {
generateSSHWithBindingTable(dst);
DEBUG_BREAK_IF(dst.kernelAttributes.numArgsStateful > dst.payloadMappings.bindingTable.numEntries);
dst.kernelAttributes.numArgsStateful = std::max(dst.kernelAttributes.numArgsStateful, static_cast<uint16_t>(dst.payloadMappings.bindingTable.numEntries));
}
if (dst.payloadMappings.samplerTable.numSamplers > 0U) {