performance: program bindless sampler offsets only when necessary

- if samplers are not used, do not call the function amd do not iterate
all args

Related-To: NEO-11503

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-07-02 16:26:12 +00:00
committed by Compute-Runtime-Automation
parent e13460bb6a
commit 55e6d5c88d
2 changed files with 4 additions and 1 deletions

View File

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