- if (error == VK_ERROR_DEVICE_LOST &&
- env_var_as_boolean("ANV_ABORT_ON_DEVICE_LOSS", false))
- abort();
+ return error;
+}
+
+VkResult
+__vk_errorf(struct anv_instance *instance, const void *object,
+ VkDebugReportObjectTypeEXT type, VkResult error,
+ const char *file, int line, const char *format, ...)
+{
+ va_list ap;
+
+ va_start(ap, format);
+ __vk_errorv(instance, object, type, error, file, line, format, ap);
+ va_end(ap);