fix: use igc indirect detection v3

Update to use igc indirect detection v3. Fix for not detecting indirects
passed as implicit arguments.

Related-To: NEO-11396

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2024-05-14 15:22:42 +00:00
committed by Compute-Runtime-Automation
parent 4320be4593
commit fd47030ad6
10 changed files with 114 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ template <>
bool ProductHelperHw<gfxProduct>::isDetectIndirectAccessInKernelSupported(const KernelDescriptor &kernelDescriptor, const bool isPrecompiled, const uint32_t kernelIndirectDetectionVersion) const {
const bool isZebin = kernelDescriptor.kernelAttributes.binaryFormat == DeviceBinaryFormat::zebin;
const bool isCMKernelHeuristic = kernelDescriptor.kernelAttributes.simdSize == 1;
constexpr auto minimalIndirectDetectionVersion = 2u;
constexpr auto minimalIndirectDetectionVersion = 3u;
const bool indirectDetectionValid = !isPrecompiled || kernelIndirectDetectionVersion >= minimalIndirectDetectionVersion;
return isZebin && indirectDetectionValid && !isCMKernelHeuristic;
}