Disable GTPin notifications for parent kernels

Resolves: NEO-4877

Change-Id: I34d036d2c4db6976297456b889bb5dbbbd6182e2
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2020-08-27 16:11:44 +02:00
committed by sys_ocldev
parent 8f52561307
commit a7e15b250c
3 changed files with 57 additions and 3 deletions

View File

@ -68,7 +68,7 @@ void gtpinNotifyKernelCreate(cl_kernel kernel) {
auto &device = pKernel->getDevice();
GFXCORE_FAMILY genFamily = device.getHardwareInfo().platform.eRenderCoreFamily;
GTPinHwHelper &gtpinHelper = GTPinHwHelper::get(genFamily);
if (!gtpinHelper.addSurfaceState(pKernel)) {
if (pKernel->isParentKernel || !gtpinHelper.addSurfaceState(pKernel)) {
// Kernel with no SSH or Kernel EM, not supported
return;
}
@ -104,7 +104,7 @@ void gtpinNotifyKernelCreate(cl_kernel kernel) {
void gtpinNotifyKernelSubmit(cl_kernel kernel, void *pCmdQueue) {
if (isGTPinInitialized) {
auto pKernel = castToObjectOrAbort<Kernel>(kernel);
if (pKernel->getSurfaceStateHeapSize() == 0) {
if (pKernel->isParentKernel || pKernel->getSurfaceStateHeapSize() == 0) {
// Kernel with no SSH, not supported
return;
}