Lines Matching defs:Hal
49 class Hal {
53 static const Hal& Get() { return hal_; }
59 Hal() : dev_(nullptr), debug_report_index_(-1) {}
60 Hal(const Hal&) = delete;
61 Hal& operator=(const Hal&) = delete;
65 static Hal hal_;
124 Hal Hal::hal_;
126 bool Hal::Open() {
129 // Use a stub device unless we successfully open a real HAL device.
136 ALOGI("no Vulkan HAL present, using stub HAL");
145 // Any device with a Vulkan HAL should be able to open the device.
146 ALOGE("failed to open Vulkan HAL device: %s (%d)", strerror(-result),
158 bool Hal::InitDebugReportIndex() {
162 ALOGE("failed to get HAL instance extension count");
169 ALOGE("failed to allocate HAL instance extension array");
175 ALOGE("failed to enumerate HAL instance extensions");
314 return Hal::Device().EnumerateInstanceExtensionProperties(
327 return Hal::Device().EnumerateInstanceExtensionProperties(
385 // return now as these extensions do not require HAL support
388 // both we and HAL can take part in
392 // HAL's extensions
406 // HAL's extensions
520 return Hal::Open();
537 return Hal::Device().GetInstanceProcAddr(instance, pName);
625 if (Hal::Get().GetDebugReportIndex() < 0) {
637 VkResult result = Hal::Device().EnumerateInstanceExtensionProperties(
641 int idx = Hal::Get().GetDebugReportIndex();
707 result = Hal::Device().CreateInstance(
717 !InitDriverTable(instance, Hal::Device().GetInstanceProcAddr,
720 Hal::Device().GetInstanceProcAddr(instance, "vkDestroyInstance"));
730 Hal::Device().GetInstanceProcAddr(instance, "vkGetDeviceProcAddr"));