feature: bindless image extension

- support for zeMemGetPitchFor2dImage() and
zeImageGetDeviceOffsetExp()

Related-To: NEO-10352

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-02-14 11:07:01 +00:00
committed by Compute-Runtime-Automation
parent 88c5872682
commit 3051c5ef2b
14 changed files with 297 additions and 13 deletions

View File

@@ -191,13 +191,13 @@ ze_result_t ZE_APICALL zeMemGetPitchFor2dImage(
size_t imageHeight,
unsigned int elementSizeInBytes,
size_t *rowPitch) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
return L0::Context::fromHandle(hContext)->getPitchFor2dImage(hDevice, imageWidth, imageHeight, elementSizeInBytes, rowPitch);
}
ze_result_t ZE_APICALL zeImageGetDeviceOffsetExp(
ze_image_handle_t hImage,
uint64_t *pDeviceOffset) {
return ZE_RESULT_ERROR_UNSUPPORTED_FEATURE;
return L0::Image::fromHandle(hImage)->getDeviceOffset(pDeviceOffset);
}
} // namespace L0