|
5 | 5 | * SPDX-License-Identifier: MIT |
6 | 6 | * |
7 | 7 | * @file ze_api.h |
8 | | - * @version v1.11-r1.11.8 |
| 8 | + * @version v1.12-r1.11.9 |
9 | 9 | * |
10 | 10 | */ |
11 | 11 | #ifndef _ZE_API_H |
@@ -345,6 +345,7 @@ typedef enum _ze_structure_type_t |
345 | 345 | ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC = 0x0002001F, ///< ::ze_image_pitched_exp_desc_t |
346 | 346 | ZE_STRUCTURE_TYPE_MUTABLE_GRAPH_ARGUMENT_EXP_DESC = 0x00020020, ///< ::ze_mutable_graph_argument_exp_desc_t |
347 | 347 | ZE_STRUCTURE_TYPE_INIT_DRIVER_TYPE_DESC = 0x00020021, ///< ::ze_init_driver_type_desc_t |
| 348 | + ZE_STRUCTURE_TYPE_DRIVER_DDI_HANDLES_EXT_PROPERTIES = 0x00020022, ///< ::ze_driver_ddi_handles_ext_properties_t |
348 | 349 | ZE_STRUCTURE_TYPE_FORCE_UINT32 = 0x7fffffff |
349 | 350 |
|
350 | 351 | } ze_structure_type_t; |
@@ -689,6 +690,10 @@ typedef struct _ze_float_atomic_ext_properties_t ze_float_atomic_ext_properties_ |
689 | 690 | /// @brief Forward-declare ze_relaxed_allocation_limits_exp_desc_t |
690 | 691 | typedef struct _ze_relaxed_allocation_limits_exp_desc_t ze_relaxed_allocation_limits_exp_desc_t; |
691 | 692 |
|
| 693 | +/////////////////////////////////////////////////////////////////////////////// |
| 694 | +/// @brief Forward-declare ze_driver_ddi_handles_ext_properties_t |
| 695 | +typedef struct _ze_driver_ddi_handles_ext_properties_t ze_driver_ddi_handles_ext_properties_t; |
| 696 | + |
692 | 697 | /////////////////////////////////////////////////////////////////////////////// |
693 | 698 | /// @brief Forward-declare ze_cache_reservation_ext_desc_t |
694 | 699 | typedef struct _ze_cache_reservation_ext_desc_t ze_cache_reservation_ext_desc_t; |
@@ -7692,6 +7697,54 @@ zeKernelGetBinaryExp( |
7692 | 7697 | uint8_t* pKernelBinary ///< [in,out] pointer to storage area for GEN ISA binary function. |
7693 | 7698 | ); |
7694 | 7699 |
|
| 7700 | +#if !defined(__GNUC__) |
| 7701 | +#pragma endregion |
| 7702 | +#endif |
| 7703 | +// Intel 'oneAPI' Level-Zero Extension for Driver Direct Device Interface (DDI) Handles |
| 7704 | +#if !defined(__GNUC__) |
| 7705 | +#pragma region driverDDIHandles |
| 7706 | +#endif |
| 7707 | +/////////////////////////////////////////////////////////////////////////////// |
| 7708 | +#ifndef ZE_DRIVER_DDI_HANDLES_EXT_NAME |
| 7709 | +/// @brief Driver Direct Device Interface (DDI) Handles Extension Name |
| 7710 | +#define ZE_DRIVER_DDI_HANDLES_EXT_NAME "ZE_extension_driver_ddi_handles" |
| 7711 | +#endif // ZE_DRIVER_DDI_HANDLES_EXT_NAME |
| 7712 | + |
| 7713 | +/////////////////////////////////////////////////////////////////////////////// |
| 7714 | +/// @brief Driver Direct Device Interface (DDI) Handles Extension Version(s) |
| 7715 | +typedef enum _ze_driver_ddi_handles_ext_version_t |
| 7716 | +{ |
| 7717 | + ZE_DRIVER_DDI_HANDLES_EXT_VERSION_1_0 = ZE_MAKE_VERSION( 1, 0 ), ///< version 1.0 |
| 7718 | + ZE_DRIVER_DDI_HANDLES_EXT_VERSION_CURRENT = ZE_MAKE_VERSION( 1, 0 ), ///< latest known version |
| 7719 | + ZE_DRIVER_DDI_HANDLES_EXT_VERSION_FORCE_UINT32 = 0x7fffffff |
| 7720 | + |
| 7721 | +} ze_driver_ddi_handles_ext_version_t; |
| 7722 | + |
| 7723 | +/////////////////////////////////////////////////////////////////////////////// |
| 7724 | +/// @brief Driver Direct Device Interface (DDI) Handle Extension Flags |
| 7725 | +typedef uint32_t ze_driver_ddi_handle_ext_flags_t; |
| 7726 | +typedef enum _ze_driver_ddi_handle_ext_flag_t |
| 7727 | +{ |
| 7728 | + ZE_DRIVER_DDI_HANDLE_EXT_FLAG_DDI_HANDLE_EXT_SUPPORTED = ZE_BIT(0), ///< Driver Supports DDI Handles Extension |
| 7729 | + ZE_DRIVER_DDI_HANDLE_EXT_FLAG_FORCE_UINT32 = 0x7fffffff |
| 7730 | + |
| 7731 | +} ze_driver_ddi_handle_ext_flag_t; |
| 7732 | + |
| 7733 | +/////////////////////////////////////////////////////////////////////////////// |
| 7734 | +/// @brief Driver DDI Handles properties queried using ::zeDriverGetProperties |
| 7735 | +/// |
| 7736 | +/// @details |
| 7737 | +/// - This structure may be returned from ::zeDriverGetProperties, via the |
| 7738 | +/// `pNext` member of ::ze_driver_properties_t. |
| 7739 | +typedef struct _ze_driver_ddi_handles_ext_properties_t |
| 7740 | +{ |
| 7741 | + ze_structure_type_t stype; ///< [in] type of this structure |
| 7742 | + void* pNext; ///< [in,out][optional] must be null or a pointer to an extension-specific |
| 7743 | + ///< structure (i.e. contains stype and pNext). |
| 7744 | + ze_driver_ddi_handle_ext_flags_t flags; ///< [out] 0 (none) or a valid combination of ::ze_driver_ddi_handle_ext_flags_t |
| 7745 | + |
| 7746 | +} ze_driver_ddi_handles_ext_properties_t; |
| 7747 | + |
7695 | 7748 | #if !defined(__GNUC__) |
7696 | 7749 | #pragma endregion |
7697 | 7750 | #endif |
|
0 commit comments