From 525a3f08e8c863d713905ba69145335ca49849ae Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Tue, 9 Aug 2022 14:34:56 +0200 Subject: [PATCH] rhi: vulkan: Log instance extensions Change-Id: I7968268c1c536a0ebcdea00f2f6ab7f5b008be18 Reviewed-by: Andy Nichols --- src/gui/rhi/qrhivulkan.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/gui/rhi/qrhivulkan.cpp b/src/gui/rhi/qrhivulkan.cpp index 592a5c4fa0..231dac06b3 100644 --- a/src/gui/rhi/qrhivulkan.cpp +++ b/src/gui/rhi/qrhivulkan.cpp @@ -384,11 +384,16 @@ bool QRhiVulkan::create(QRhi::Flags flags) return false; } - globalVulkanInstance = inst; // assume this will not change during the lifetime of the entire application - - f = inst->functions(); - rhiFlags = flags; + qCDebug(QRHI_LOG_INFO, "Initializing QRhi Vulkan backend %p with flags %d", this, int(rhiFlags)); + + globalVulkanInstance = inst; // used for function resolving in vkmemalloc callbacks + f = inst->functions(); + if (QRHI_LOG_INFO().isEnabled(QtDebugMsg)) { + qCDebug(QRHI_LOG_INFO, "Enabled instance extensions:"); + for (const char *ext : inst->extensions()) + qCDebug(QRHI_LOG_INFO, " %s", ext); + } QList queueFamilyProps; auto queryQueueFamilyProps = [this, &queueFamilyProps] {