1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxvk] Log driver name in addition to version

Fixes #3313.
This commit is contained in:
Philip Rebohle 2023-03-27 15:43:46 +02:00
parent 977669c613
commit 306919047b

View File

@ -465,11 +465,11 @@ namespace dxvk {
// Log feature support info an extension list // Log feature support info an extension list
Logger::info(str::format("Device properties:" Logger::info(str::format("Device properties:"
"\n Device name: : ", m_deviceInfo.core.properties.deviceName, "\n Device : ", m_deviceInfo.core.properties.deviceName,
"\n Driver version : ", "\n Driver : ", m_deviceInfo.vk12.driverName, " ",
VK_VERSION_MAJOR(m_deviceInfo.core.properties.driverVersion), ".", VK_VERSION_MAJOR(m_deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_MINOR(m_deviceInfo.core.properties.driverVersion), ".", VK_VERSION_MINOR(m_deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_PATCH(m_deviceInfo.core.properties.driverVersion))); VK_VERSION_PATCH(m_deviceInfo.core.properties.driverVersion)));
Logger::info("Enabled device extensions:"); Logger::info("Enabled device extensions:");
this->logNameList(extensionNameList); this->logNameList(extensionNameList);
@ -637,11 +637,11 @@ namespace dxvk {
// Log feature support info an extension list // Log feature support info an extension list
Logger::info(str::format("Device properties:" Logger::info(str::format("Device properties:"
"\n Device name: : ", m_deviceInfo.core.properties.deviceName, "\n Device name: ", m_deviceInfo.core.properties.deviceName,
"\n Driver version : ", "\n Driver: ", m_deviceInfo.vk12.driverName, " ",
VK_VERSION_MAJOR(m_deviceInfo.core.properties.driverVersion), ".", VK_VERSION_MAJOR(m_deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_MINOR(m_deviceInfo.core.properties.driverVersion), ".", VK_VERSION_MINOR(m_deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_PATCH(m_deviceInfo.core.properties.driverVersion))); VK_VERSION_PATCH(m_deviceInfo.core.properties.driverVersion)));
Logger::info("Enabled device extensions:"); Logger::info("Enabled device extensions:");
this->logNameList(extensionNameList); this->logNameList(extensionNameList);
@ -689,18 +689,14 @@ namespace dxvk {
void DxvkAdapter::logAdapterInfo() const { void DxvkAdapter::logAdapterInfo() const {
VkPhysicalDeviceProperties deviceInfo = this->deviceProperties(); const auto deviceInfo = this->devicePropertiesExt();
VkPhysicalDeviceMemoryProperties memoryInfo = this->memoryProperties(); const auto memoryInfo = this->memoryProperties();
Logger::info(str::format(deviceInfo.deviceName, ":")); Logger::info(str::format(deviceInfo.core.properties.deviceName, ":",
Logger::info(str::format(" Driver: ", "\n Driver : ", deviceInfo.vk12.driverName, " ",
VK_VERSION_MAJOR(deviceInfo.driverVersion), ".", VK_VERSION_MAJOR(deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_MINOR(deviceInfo.driverVersion), ".", VK_VERSION_MINOR(deviceInfo.core.properties.driverVersion), ".",
VK_VERSION_PATCH(deviceInfo.driverVersion))); VK_VERSION_PATCH(deviceInfo.core.properties.driverVersion)));
Logger::info(str::format(" Vulkan: ",
VK_VERSION_MAJOR(deviceInfo.apiVersion), ".",
VK_VERSION_MINOR(deviceInfo.apiVersion), ".",
VK_VERSION_PATCH(deviceInfo.apiVersion)));
for (uint32_t i = 0; i < memoryInfo.memoryHeapCount; i++) { for (uint32_t i = 0; i < memoryInfo.memoryHeapCount; i++) {
constexpr VkDeviceSize mib = 1024 * 1024; constexpr VkDeviceSize mib = 1024 * 1024;