mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e13460bb6a
commit
55e6d5c88d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user