Don't check addressing mode for gtpin surface

If gtpin is used, then don't check addressing mode
of the last explicit arg, which is
gtpin's surface.

Related-To: NEO-6075
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2023-03-09 16:27:52 +00:00
committed by Compute-Runtime-Automation
parent ab3ae9215c
commit 5a99635232
6 changed files with 36 additions and 7 deletions

View File

@@ -165,7 +165,8 @@ cl_int Program::build(
retVal = processGenBinaries(deviceVector, phaseReached);
auto containsStatefulAccess = AddressingModeHelper::containsStatefulAccess(buildInfos[clDevices[0]->getRootDeviceIndex()].kernelInfoArray);
auto skipLastExplicitArg = isGTPinInitialized;
auto containsStatefulAccess = AddressingModeHelper::containsStatefulAccess(buildInfos[clDevices[0]->getRootDeviceIndex()].kernelInfoArray, skipLastExplicitArg);
auto isUserKernel = !isBuiltIn;
auto failBuildProgram = (containsStatefulAccess &&