mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
feature: Define L0 Driver API for Driver Version String
Related-To: NEO-11752 - Adds zeIntelGetDriverVersionString to report the driver version string to the user in the format: Major.Minor.Patch+Optional Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
f200e0791f
commit
c51329d098
@ -185,6 +185,35 @@ typedef enum _zex_intel_queue_copy_operations_offload_hint_exp_version_t {
|
||||
ZEX_INTEL_QUEUE_COPY_OPERATIONS_OFFLOAD_HINT_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
|
||||
} zex_intel_queue_copy_operations_offload_hint_exp_version_t;
|
||||
|
||||
#ifndef ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_NAME
|
||||
/// @brief Extension name for query to read the Intel Level Zero Driver Version String
|
||||
#define ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_NAME "ZE_intel_get_driver_version_string"
|
||||
#endif // ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_NAME
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Query to read the Intel Level Zero Driver Version String extension version(s)
|
||||
typedef enum _ze_intel_get_driver_version_string_exp_version_t {
|
||||
ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_VERSION_1_0 = ZE_MAKE_VERSION(1, 0), ///< version 1.0
|
||||
ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_VERSION_CURRENT = ZE_MAKE_VERSION(1, 0), ///< latest known version
|
||||
ZE_INTEL_GET_DRIVER_VERSION_STRING_EXP_VERSION_FORCE_UINT32 = 0x7fffffff
|
||||
} ze_intel_get_driver_version_string_exp_version_t;
|
||||
|
||||
/// @brief Query to read the Intel Level Zero Driver Version String
|
||||
///
|
||||
/// @details
|
||||
/// - The application may call this function from simultaneous threads.
|
||||
/// - The implementation of this function should be lock-free.
|
||||
/// - The Driver Version String will be in the format:
|
||||
/// - Major.Minor.Patch+Optional per semver guidelines https://semver.org/#spec-item-10
|
||||
/// @returns
|
||||
/// - ::ZE_RESULT_SUCCESS
|
||||
ze_result_t ZE_APICALL
|
||||
zeIntelGetDriverVersionString(
|
||||
ze_driver_handle_t hDriver, ///< [in] Driver handle whose version is being read.
|
||||
char *pDriverVersion, ///< [in,out] pointer to driver version string.
|
||||
size_t *pVersionSize); ///< [in,out] pointer to the size of the driver version string.
|
||||
///< if size is zero, then the size of the version string is returned.
|
||||
|
||||
#if defined(__cplusplus)
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user