mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
fix: Add texture cache flush after kernels writing to images on imm cmdlists
- add `hasImageWriteArg` flag to KernelDescriptor, based on image access qualifier - add `isPostImageWriteFlushRequired` method to productHelper, to require cache flush only on selected platforms - if possible, add the `textureCacheInvalidationEnable` arg to the existing PC, otherwise add a new PC Related-To: NEO-13427, HSD-18041321008 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5a2a792c34
commit
ee769f5983
@@ -1050,6 +1050,13 @@ DecodeError decodeZeInfoKernelPayloadArguments(KernelDescriptor &dst, Yaml::Yaml
|
||||
bindfulImageAccess = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (dst.payloadMappings.explicitArgs[arg.argIndex].is<NEO::ArgDescriptor::argTImage>()) {
|
||||
if (dst.payloadMappings.explicitArgs[arg.argIndex].getTraits().getAccessQualifier() == NEO::KernelArgMetadata::AccessQualifier::AccessWriteOnly ||
|
||||
dst.payloadMappings.explicitArgs[arg.argIndex].getTraits().getAccessQualifier() == NEO::KernelArgMetadata::AccessQualifier::AccessReadWrite) {
|
||||
dst.kernelAttributes.hasImageWriteArg = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const auto implicitArgsVec = dst.getImplicitArgBindlessCandidatesVec();
|
||||
|
||||
Reference in New Issue
Block a user