mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
e8a6842b7e
commit
0a926c7d12
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user