mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 20:39:56 +08:00
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:
committed by
Compute-Runtime-Automation
parent
c281b66587
commit
7ffd151ac3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user