From: Adeel Kazmi Date: Wed, 14 Aug 2024 15:42:47 +0000 (+0100) Subject: Print out Vulkan information at startup X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel%2Fvulkan;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git Print out Vulkan information at startup Change-Id: I11036b5dfb9abdb72550737a36c80f3d1e861b25 --- diff --git a/dali/graphics/vulkan/vulkan-graphics.cpp b/dali/graphics/vulkan/vulkan-graphics.cpp index 636ff3c1f..034f4baef 100644 --- a/dali/graphics/vulkan/vulkan-graphics.cpp +++ b/dali/graphics/vulkan/vulkan-graphics.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,9 @@ // CLASS HEADER #include +// EXTERNAL INCLUDES +#include + // INTERNAL INCLUDES #include #include @@ -1541,6 +1544,20 @@ void Graphics::PreparePhysicalDevice() GetPhysicalDeviceProperties(); GetQueueFamilyProperties(); + + // We want to display this information all the time, so use the LogMessage directly + Integration::Log::LogMessage(Integration::Log::DebugInfo, + "Vulkan Information\n" + " Device Name: %s\n" + " API Version: %x\n" + " Vulkan Version: %d.%d.%d\n" + " Driver Version: %x\n", + &mPhysicalDeviceProperties.deviceName[0], + mPhysicalDeviceProperties.apiVersion, + VK_VERSION_MAJOR(mPhysicalDeviceProperties.apiVersion), + VK_VERSION_MINOR(mPhysicalDeviceProperties.apiVersion), + VK_VERSION_PATCH(mPhysicalDeviceProperties.apiVersion), + mPhysicalDeviceProperties.driverVersion); } void Graphics::GetPhysicalDeviceProperties()