mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
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:
committed by
Compute-Runtime-Automation
parent
88c5872682
commit
3051c5ef2b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user