mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
feature: verify stateful information only when binary is generated by IGC
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6075 Ngen binaries contain stateful information, however they are not used in isa on Pvc. Therefore, we can just ignore them.
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
37f04dc670
commit
6a0f7afd64
@@ -114,8 +114,15 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
|
||||
idd.setSharedLocalMemorySize(slmSize);
|
||||
|
||||
auto bindingTableStateCount = kernelDescriptor.payloadMappings.bindingTable.numEntries;
|
||||
auto bufferAddressingMode = kernelDescriptor.kernelAttributes.bufferAddressingMode;
|
||||
|
||||
if (productHelper.isSkippingStatefulInformationRequired(kernelDescriptor)) {
|
||||
bindingTableStateCount = 0u;
|
||||
bufferAddressingMode = KernelDescriptor::Stateless;
|
||||
}
|
||||
|
||||
uint32_t bindingTablePointer = 0u;
|
||||
if ((kernelDescriptor.kernelAttributes.bufferAddressingMode == KernelDescriptor::BindfulAndStateless) ||
|
||||
if ((bufferAddressingMode == KernelDescriptor::BindfulAndStateless) ||
|
||||
kernelDescriptor.kernelAttributes.flags.usesImages) {
|
||||
container.prepareBindfulSsh();
|
||||
if (bindingTableStateCount > 0u) {
|
||||
|
||||
Reference in New Issue
Block a user