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

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -31,6 +31,14 @@ zeImageGetMemoryPropertiesExp(
return L0::Image::fromHandle(hImage)->getMemoryProperties(pMemoryProperties);
}
ZE_APIEXPORT ze_result_t ZE_APICALL
zeImageGetAllocPropertiesExt(
ze_context_handle_t hContext,
ze_image_handle_t hImage,
ze_image_allocation_ext_properties_t *pAllocProperties) {
return L0::Context::fromHandle(hContext)->getImageAllocProperties(L0::Image::fromHandle(hImage), pAllocProperties);
}
ZE_APIEXPORT ze_result_t ZE_APICALL
zeImageViewCreateExp(
ze_context_handle_t hContext,