mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
8f52561307
commit
a7e15b250c
@ -68,7 +68,7 @@ void gtpinNotifyKernelCreate(cl_kernel kernel) {
|
||||
auto &device = pKernel->getDevice();
|
||||
GFXCORE_FAMILY genFamily = device.getHardwareInfo().platform.eRenderCoreFamily;
|
||||
GTPinHwHelper >pinHelper = 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user