Repository navigation
d3d12_vulkan_device_test: compare A4B4G4R4 with the host only where the host has the format - #2438
Conversation
…he host has the format new_format_round_trips (D3D-259, ItsNotRexed#1914) failed on a Windows 10 host with 'new format 191: the host refuses a texture the layer creates': A4B4G4R4_UNORM is not in Windows 10's D3D12, whose CheckFeatureSupport reports no 2D texture for it, and the test stops there so no later check runs. The host comparison now runs only for a format the host reports as a 2D texture; a host that reports it and still refuses it fails as before.
|
Tested 911ee1a on Windows 11 build 26200.9974, NVIDIA RTX 5060 Ti / driver 621.24 (Vulkan 1.4.357), MSVC 19.44.35207, CMake 4.5.1 + Ninja 1.13.2, llvm-mc 21.1.8 and SPIRV-Tools v2026.4 on PATH:
No game files used. Ran with an AI agent on my machine. |
|
Tested 911ee1a (merged onto main 4947579) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass
AI-assisted (Claude). |
|
Windows + GPU check: AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release, Vulkan SDK 1.4.363. Tested head 911ee1a merged onto AI-assisted (Claude Code); runs on my machine. |
|
Tested 911ee1a (on
AI-assisted (Claude Code). |
|
Tested 911ee1a on NVIDIA GeForce RTX 4070 (driver 617.42), Windows 11 (26300), MSVC 19.44, scripts/build_runtime.ps1 (Ninja), RelWithDebInfo: pass. ctest 124/124 (GameInput disabled, no SDL3). d3d12_vulkan_device prints I also read the diff; two small points. (1) AI-assisted: the review was done by Codex (gpt-6.2-sol); both points were checked against the code. |
|
Tested 911ee1a on Windows 11 (26200), MSVC 19.4x (VS 2022 Build Tools), Ninja RelWithDebInfo: pass on both GPUs of a two-GPU PC.
No game files. AI-assisted check (Claude Code), Vonsek3. |
|
Tested 911ee1a on AMD Radeon RX 7900 XTX (RDNA3, Navi 31), AMD driver 26.11.2, Vulkan 1.4.359, Windows 11: pass.
Tools: MSVC 14.44 ( |
|
Tested 911ee1a on Windows 11 with an RX 9070 (AMD 26.11.1, Vulkan 1.4.359), built with VS 2022 Build Tools: pass
AI-assisted |
… is skipped, and count the compared ones Follow-up to #2438 from the review of pwu2775-dev. A failed host FORMAT_SUPPORT query was treated as 'no such texture' without saying so, and the summary printed '(host compared)' even when every comparison was skipped. The query's answer is now printed (E_FAIL on Windows 10 build 19045, E_INVALIDARG seen on another 19041 host, so a single code is not assumed) and the summary says how many formats were compared and how many the host lacks.
Claim: #2300 (comment) (new TEST item; no ID yet). Follow-up to #1914 (D3D-259); same spirit as #717 (keep the test running on Windows 10).
Problem
d3d12_vulkan_device_teststops on a Windows 10 host:new_format_round_tripsprintsnew format 191: the host refuses a texture the layer createsandline 4064: new_format_round_trips(...) == 0(191 isA4B4G4R4_UNORM). Windows 10's D3D12 doesn't have that format: its ownCheckFeatureSupportreports no 2D texture for it. The test treated that as a layer bug and aborted, so every later check in the file didn't run on such a host.Change
Test only. The host comparison for a new format now runs only when the host itself reports
D3D12_FORMAT_SUPPORT1_TEXTURE2Dfor it, and prints a line otherwise. A host that reports the format and still refuses the texture fails as before, so a real mismatch is still caught.Tested
Windows 10 Pro 19045 (D3D12 host without A4B4G4R4), MSVC 2022, Windows SDK 10.0.26100.0, on
main49475796:d3d12_vulkan_device_testexits 1 at that line on NVIDIA GeForce RTX 4070 Ti (621.24) and on the AMD Radeon Graphics iGPU of a Ryzen 7 9700X (24.30.18).new formats: 11 of 11 created and copied both ways bit for bit (host compared), 9 render-target clears matched the host, A4B4G4R4 render target not reported, skipped, 0 failures, and the test continues.Not in this PR
The test still exits 1 further on, for other reasons I did not touch: on the RTX 4070 Ti
invalid arguments heap: HARDWARE_PROTECTED: ours 0x00000000, host 0x80070057(line 5741, the area of #1820), and on the AMD iGPUinvalid arguments format 67 RT: ours 0x00000000, host 0x80070057(line 4211). I haven't checked whether these differ on a Windows 11 host.AI-assisted (Claude Code).