mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 23:33:20 +08:00
Currently gtpin is intialized during zeInit call. However, it is not correct as gtpin is calling other L0 API functions, like zeDriverGet which should not be called until zeInit function finishes. With this commit gtpin initialization is performed during first zeDriverGet function call. In case of initialization failure ZE_RESULT_ERROR_DEPENDENCY_UNAVAILABLE will be returned every zeDriverGet call. Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>