loader: Convert GetInstanceProcAddr and GetDeviceProcAddr over to new semantics
As per Vulkan bug 13288. Still need to handle device extensions correctly.
diff --git a/loader/debug_report.c b/loader/debug_report.c
index 6ede98c..08ef8ca 100644
--- a/loader/debug_report.c
+++ b/loader/debug_report.c
@@ -323,9 +323,9 @@
const char* name,
void **addr)
{
+ // debug_report is currently advertised to be supported by the loader,
+ // so always return the entry points if name matches and it's enabled
*addr = NULL;
- if (ptr_instance == VK_NULL_HANDLE)
- return false;
if (!strcmp("vkDbgCreateMsgCallback", name)) {
*addr = ptr_instance->debug_report_enabled ? (void *) debug_report_DbgCreateMsgCallback : NULL;