Add Windows image memory export functionality

Adds zeImageGetAllocPropertiesExt function, implementation code shared
shared with zeMemGetAllocProperties moved into common helper function.

Related-To: LOCI-2665

Signed-off-by: Jim Snow <jim.m.snow@intel.com>
This commit is contained in:
Jim Snow
2022-01-25 07:23:34 +00:00
committed by Compute-Runtime-Automation
parent e8a6842b7e
commit 0a926c7d12
10 changed files with 326 additions and 35 deletions

View File

@@ -460,11 +460,13 @@ zeGetImageProcAddrTable(
pDdiTable->pfnGetProperties = zeImageGetProperties;
pDdiTable->pfnCreate = zeImageCreate;
pDdiTable->pfnDestroy = zeImageDestroy;
pDdiTable->pfnGetAllocPropertiesExt = zeImageGetAllocPropertiesExt;
driver_ddiTable.core_ddiTable.Image = *pDdiTable;
if (driver_ddiTable.enableTracing) {
pDdiTable->pfnGetProperties = zeImageGetProperties_Tracing;
pDdiTable->pfnCreate = zeImageCreate_Tracing;
pDdiTable->pfnDestroy = zeImageDestroy_Tracing;
pDdiTable->pfnGetAllocPropertiesExt = zeImageGetAllocPropertiesExt;
}
return result;
}