From b9fb2c266a4b1058a1f7befd97320769d5d0a18b Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Thu, 31 May 2018 01:49:38 +0200 Subject: radv: Add startup debug option. This adds a RADV_DEBUG=startup option to dump more info about instance creation and device enumeration. A common question end users have is why the direver is not loading for them, and this has two common reasons: 1) They did not install the driver. 2) AMDGPU is not used for the card in the kernel. This adds some info messages so we can easily get a some useful output from end users. Reviewed-by: Timothy Arceri Reviewed-by: Samuel Pitoiset --- src/amd/vulkan/radv_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/amd/vulkan/radv_private.h') diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 5f18fc49394..518f11dbcbf 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -228,6 +228,8 @@ void __radv_finishme(const char *file, int line, const char *format, ...) radv_printflike(3, 4); void radv_loge(const char *format, ...) radv_printflike(1, 2); void radv_loge_v(const char *format, va_list va); +void radv_logi(const char *format, ...) radv_printflike(1, 2); +void radv_logi_v(const char *format, va_list va); /** * Print a FINISHME message, including its source location. -- cgit v1.2.3