mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
refactor: collate ze_structure_type_t macros
Collated all ze_structure_type_t `#define` macros into a single header. By doing so, all hex values associated with L0 extensions are in one file. The two new headers are included in the API headers shared among extension implementations, making the in-use hex values and types easy to find for extension developers. Related-To: NEO-11754 Signed-off-by: Jack Myers <jack.myers@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9625f88d02
commit
9dba608932
@@ -11,6 +11,7 @@
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "level_zero/include/ze_stypes.h"
|
||||
#include <level_zero/ze_api.h>
|
||||
|
||||
#ifndef ZE_BINDLESS_IMAGE_EXP_NAME
|
||||
@@ -28,8 +29,6 @@ typedef enum _ze_image_bindless_exp_flags_t {
|
||||
ZE_IMAGE_BINDLESS_EXP_FLAG_FORCE_UINT32 = 0x7fffffff
|
||||
} ze_image_bindless_exp_flags_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_BINDLESS_IMAGE_EXP_DESC (ze_structure_type_t)0x0002001E
|
||||
|
||||
typedef struct _ze_image_bindless_exp_desc_t {
|
||||
ze_structure_type_t stype; ///< [in] type of this structure
|
||||
const void *pNext; ///< [in][optional] must be null or a pointer to an extension-specific
|
||||
@@ -39,8 +38,6 @@ typedef struct _ze_image_bindless_exp_desc_t {
|
||||
///< default behavior bindless images are not used when creating handles via zeImageCreate.
|
||||
} ze_image_bindless_exp_desc_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_PITCHED_IMAGE_EXP_DESC (ze_structure_type_t)0x0002001F
|
||||
|
||||
typedef struct _ze_image_pitched_exp_desc_t {
|
||||
ze_structure_type_t stype; ///< [in] type of this structure
|
||||
const void *pNext; ///< [in][optional] must be null or a pointer to an extension-specific
|
||||
@@ -48,8 +45,6 @@ typedef struct _ze_image_pitched_exp_desc_t {
|
||||
void *ptr; ///< [in] pointer to pitched device allocation allocated using zeMemAllocDevice.
|
||||
} ze_image_pitched_exp_desc_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_PITCHED_ALLOC_DEVICE_EXP_PROPERTIES (ze_structure_type_t)0x0002001D
|
||||
|
||||
typedef struct _ze_device_pitched_alloc_exp_properties_t {
|
||||
ze_structure_type_t stype; ///< [in] type of this structure
|
||||
void *pNext; ///< [in,out][optional] must be null or a pointer to an extension-specific
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#endif
|
||||
|
||||
// 'core' API headers
|
||||
#include "level_zero/include/ze_stypes.h"
|
||||
#include <level_zero/ze_api.h>
|
||||
// 'sysman' API headers
|
||||
#include <level_zero/zes_api.h>
|
||||
|
||||
@@ -95,8 +95,6 @@ typedef struct _ze_synchronized_dispatch_exp_desc_t {
|
||||
|
||||
} ze_synchronized_dispatch_exp_desc_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_SYNCHRONIZED_DISPATCH_EXP_DESC (ze_structure_type_t)0x00020020
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Forward-declare ze_intel_media_communication_desc_t
|
||||
typedef struct _ze_intel_media_communication_desc_t ze_intel_media_communication_desc_t;
|
||||
@@ -125,9 +123,6 @@ typedef struct _ze_intel_media_doorbell_handle_desc_t {
|
||||
uint64_t doorbell; ///< [in,out] handle of the doorbell
|
||||
} ze_intel_media_doorbell_handle_desc_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_INTEL_MEDIA_COMMUNICATION_DESC (ze_structure_type_t)0x00020021
|
||||
#define ZE_STRUCTURE_TYPE_INTEL_MEDIA_DOORBELL_HANDLE_DESC (ze_structure_type_t)0x00020022
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Supported device media flags
|
||||
typedef uint32_t ze_intel_device_media_exp_flags_t;
|
||||
@@ -151,8 +146,6 @@ typedef struct _ze_intel_device_media_exp_properties_t {
|
||||
uint32_t numDecoderCores; ///< [out] number of decoder cores
|
||||
} ze_intel_device_media_exp_properties_t;
|
||||
|
||||
#define ZE_STRUCTURE_TYPE_INTEL_DEVICE_MEDIA_EXP_PROPERTIES (ze_structure_type_t)0x00020023
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
||||
@@ -23,7 +23,6 @@ zexKernelGetBaseAddress(
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief General Register File descriptor.
|
||||
/// Must be passed to zeDeviceGetModuleProperties via pNext member of ze_device_module_properties_t.
|
||||
#define ZEX_STRUCTURE_DEVICE_MODULE_REGISTER_FILE_EXP (ze_structure_type_t)0x00030010
|
||||
typedef struct _zex_device_module_register_file_exp_t {
|
||||
ze_structure_type_t stype = ZEX_STRUCTURE_DEVICE_MODULE_REGISTER_FILE_EXP; ///< [in] type of this structure
|
||||
const void *pNext = nullptr; ///< [in, out][optional] pointer to extension-specific structure
|
||||
@@ -34,7 +33,6 @@ typedef struct _zex_device_module_register_file_exp_t {
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Kernel register file size information
|
||||
/// Must be passed to zeKernelGetProperties via pNext member of ze_kernel_properties_t
|
||||
#define ZEX_STRUCTURE_KERNEL_REGISTER_FILE_SIZE_EXP (ze_structure_type_t)0x00030012
|
||||
typedef struct _zex_kernel_register_file_size_exp_t {
|
||||
ze_structure_type_t stype = ZEX_STRUCTURE_KERNEL_REGISTER_FILE_SIZE_EXP; ///< [in] type of this structure
|
||||
const void *pNext = nullptr; ///< [in, out][optional] pointer to extension-specific structure
|
||||
|
||||
Reference in New Issue
Block a user