Skip to content

Commit c29b28a

Browse files
alsepkowCopilot
andcommitted
[api-query] Restore DriverVersion assignment on D3D12 devices
PR #1206 accidentally replaced the DriverVersion assignment introduced in #1205 with the new DriverName assignment, instead of adding alongside it. The result was that: * D3D12 devices no longer reported a driver version (regression of #1205). * The DriverVer constructor parameter became unused, which clang-tidy promotes to an error on Windows CI (misc-unused-parameters, -warnings-as-errors), breaking the build for every Windows job. Restore the missing 'DriverVersion = std::move(DriverVer);' line so both DriverName and DriverVersion are populated, matching the VK backend and what api-query expects. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0db5773 commit c29b28a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/API/DX/Device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -962,6 +962,7 @@ class DXDevice : public offloadtest::Device {
962962
DSVAllocator(std::move(DSVAllocator)) {
963963
Description = std::move(Desc);
964964
DriverName = "DirectX";
965+
DriverVersion = std::move(DriverVer);
965966
}
966967
DXDevice(const DXDevice &) = delete;
967968
DXDevice &operator=(const DXDevice &) = delete;

0 commit comments

Comments
 (0)