Print out Vulkan / DX12 driver name+version to console on startup#1079
Open
SRSaunders wants to merge 2 commits intoRobertBeckebans:masterfrom
Open
Print out Vulkan / DX12 driver name+version to console on startup#1079SRSaunders wants to merge 2 commits intoRobertBeckebans:masterfrom
SRSaunders wants to merge 2 commits intoRobertBeckebans:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a purely cosmetic improvement, but when testing the game against mutiple driver types/versions it would be convenient to see driver name/version information in the console log. This would confirm the test results against the expected driver. This change adds this capability for both Vulkan (driver name/version) and DX12 (UMD driver version).
Tested with AMD and Intel iGPUs on Windows 11 Vulkan and DX12, Linux Manjaro (Vulkan), and macOS Sequoia (MoltenVK and KosmicKrisp drivers for Vulkan-on-Metal).
Part of the new Vulkan code is adapted from vulkan.gpuinfo.org/functions.php by Sascha Willems. Credit is given in the comments added by this PR.
Some examples below (new addition in italics):
1. macOS on M1 MacBook Air and Intel x86_64 Mac + AMD RX6600XT:
Created Vulkan device: Apple M1 (MoltenVK 1.4.1)
Created Vulkan device: Apple M1 (KosmicKrisp 26.0.99)
Created Vulkan device: AMD Radeon HD GFX10 Family Unknown Prototype (MoltenVK 1.4.1)
2. Linux x64_64 on AMD RX6600XT and Intel iGPU:
Created Vulkan device: AMD Radeon RX 6600 XT (RADV NAVI23) (radv 25.3.3)
Created Vulkan device: Intel(R) UHD Graphics 630 (CFL GT2) (Intel open-source Mesa driver 25.3.3)
3. Windows x64_64 DX12 & Vulkan on AMD RX6600XT and Intel iGPU:
Created DX12 device: AMD Radeon RX 6600 XT (UMD driver 32.0.21037.1004)
Created Vulkan device: AMD Radeon RX 6600 XT (AMD proprietary driver 2.0.353)
Created DX12 device: Intel(R) UHD Graphics 630 (UMD driver 31.0.101.2111)
Created Vulkan device: Intel(R) UHD Graphics 630 (Intel Corporation 101.2111)