Skip to content

Commit

Permalink
Merge pull request oneapi-src#655 from przemektmalon/przemek/bindless…
Browse files Browse the repository at this point in the history
…-revision-4

[Exp][Bindless Images] Add BI revision 4 functionality
  • Loading branch information
veselypeta committed Jun 27, 2023
2 parents df3949e + 6f940e3 commit 78aebac
Show file tree
Hide file tree
Showing 12 changed files with 759 additions and 271 deletions.
87 changes: 43 additions & 44 deletions include/ur.py

Large diffs are not rendered by default.

110 changes: 80 additions & 30 deletions include/ur_api.h

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions include/ur_ddi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1279,18 +1279,21 @@ typedef ur_result_t(UR_APICALL *ur_pfnGetQueueProcAddrTable_t)(
/// @brief Function-pointer for urBindlessImagesUnsampledImageHandleDestroyExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesUnsampledImageHandleDestroyExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_handle_t);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesSampledImageHandleDestroyExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesSampledImageHandleDestroyExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_handle_t);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesImageAllocateExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImageAllocateExp_t)(
ur_context_handle_t,
ur_device_handle_t,
const ur_image_format_t *,
const ur_image_desc_t *,
ur_exp_image_mem_handle_t *);
Expand All @@ -1299,12 +1302,14 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImageAllocateExp_t)(
/// @brief Function-pointer for urBindlessImagesImageFreeExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImageFreeExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_mem_handle_t);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesUnsampledImageCreateExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesUnsampledImageCreateExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_mem_handle_t,
const ur_image_format_t *,
const ur_image_desc_t *,
Expand All @@ -1315,6 +1320,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesUnsampledImageCreateExp_t)(
/// @brief Function-pointer for urBindlessImagesSampledImageCreateExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesSampledImageCreateExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_mem_handle_t,
const ur_image_format_t *,
const ur_image_desc_t *,
Expand All @@ -1325,12 +1331,16 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesSampledImageCreateExp_t)(
///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesImageCopyExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImageCopyExp_t)(
ur_context_handle_t,
ur_queue_handle_t,
void *,
void *,
const ur_image_format_t *,
const ur_image_desc_t *,
ur_exp_image_copy_flags_t,
ur_rect_offset_t,
ur_rect_offset_t,
ur_rect_region_t,
ur_rect_region_t,
uint32_t,
const ur_event_handle_t *,
ur_event_handle_t *);
Expand All @@ -1347,6 +1357,7 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImageGetInfoExp_t)(
/// @brief Function-pointer for urBindlessImagesMipmapGetLevelExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesMipmapGetLevelExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_mem_handle_t,
uint32_t,
ur_exp_image_mem_handle_t *);
Expand All @@ -1355,12 +1366,14 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesMipmapGetLevelExp_t)(
/// @brief Function-pointer for urBindlessImagesMipmapFreeExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesMipmapFreeExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_image_mem_handle_t);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesImportOpaqueFDExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImportOpaqueFDExp_t)(
ur_context_handle_t,
ur_device_handle_t,
size_t,
uint32_t,
ur_exp_interop_mem_handle_t *);
Expand All @@ -1369,28 +1382,32 @@ typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImportOpaqueFDExp_t)(
/// @brief Function-pointer for urBindlessImagesMapExternalArrayExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesMapExternalArrayExp_t)(
ur_context_handle_t,
ur_device_handle_t,
const ur_image_format_t *,
const ur_image_desc_t *,
ur_exp_interop_mem_handle_t,
ur_exp_image_handle_t *);
ur_exp_image_mem_handle_t *);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesReleaseInteropExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesReleaseInteropExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_interop_mem_handle_t);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesImportExternalSemaphoreOpaqueFDExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesImportExternalSemaphoreOpaqueFDExp_t)(
ur_context_handle_t,
ur_device_handle_t,
uint32_t,
ur_exp_interop_semaphore_handle_t *);

///////////////////////////////////////////////////////////////////////////////
/// @brief Function-pointer for urBindlessImagesDestroyExternalSemaphoreExp
typedef ur_result_t(UR_APICALL *ur_pfnBindlessImagesDestroyExternalSemaphoreExp_t)(
ur_context_handle_t,
ur_device_handle_t,
ur_exp_interop_semaphore_handle_t);

///////////////////////////////////////////////////////////////////////////////
Expand Down
16 changes: 10 additions & 6 deletions scripts/core/EXP-BINDLESS-IMAGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ Enums
* ${X}_DEVICE_INFO_BINDLESS_IMAGES_SUPPORT_EXP
* ${X}_DEVICE_INFO_BINDLESS_IMAGES_1D_USM_SUPPORT_EXP
* ${X}_DEVICE_INFO_BINDLESS_IMAGES_2D_USM_SUPPORT_EXP
* ${X}_DEVICE_INFO_BINDLESS_IMAGES_3D_USM_SUPPORT_EXP
* ${X}_DEVICE_INFO_IMAGE_PITCH_ALIGN_EXP
* ${X}_DEVICE_INFO_MAX_IMAGE_LINEAR_WIDTH_EXP
* ${X}_DEVICE_INFO_MAX_IMAGE_LINEAR_HEIGHT_EXP
Expand Down Expand Up @@ -149,11 +148,16 @@ Functions
Changelog
--------------------------------------------------------------------------------

+-----------+------------------------+
| Revision | Changes |
+===========+========================+
| 1.0 | Initial Draft |
+-----------+------------------------+
+----------+---------------------------------------------------------+
| Revision | Changes |
+==========+=========================================================+
| 1.0 | Initial Draft |
+----------+---------------------------------------------------------+
| 2.0 || Added device parameters to UR functions. |
| || Added sub-region copy paramters to image copy function.|
| || Removed 3D USM capabilities. |
| || Added mip filter mode. |
+----------+---------------------------------------------------------+

Contributors
--------------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 78aebac

Please sign in to comment.