Repository navigation
d3d12_vulkan_device_test: seven buffer-state and heap cases are not comparable on Windows 10 (TEST-724) - #3557
Conversation
…omparable on Windows 10 Windows 10's D3D12 (no ID3D12Device10) still validates a buffer's initial state and refuses a HARDWARE_PROTECTED heap, where newer runtimes and the layer accept them. Seven cases compared those answers without a predicate, so the test could not pass on a Windows 10 host: committed: buffer in state 0x80000000 committed: buffer in RENDER_TARGET | UNORDERED_ACCESS state heap: HARDWARE_PROTECTED placed: upload buffer in COPY_DEST placed: readback buffer in GENERIC_READ placed: default buffer in state 0x80000000 reserved: buffer in state 0x80000000 They now carry the ID3D12Device10 predicate their neighbours already use, and compare_heap_neighbours gains the same "not comparable on this host" path as the other two comparisons. Hosts with ID3D12Device10 compare exactly as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kacper-serewis
left a comment
There was a problem hiding this comment.
At 5ee2189 all seven comparisons still run when ID3D12Device10 is available. Without that interface the exemption accepts any unequal HRESULTs, including layer E_FAIL versus host E_INVALIDARG. The Windows 10 measurement supports only layer S_OK versus host E_INVALIDARG. Please restrict the exemption to that pair and retain failure for other mismatches. Verified using 48 CPU-only synthetic combinations from the three comparison loops; device availability and HRESULTs were simulated. AI-assisted.
5ee2189 to
dc4256f
Compare
Review of the previous commit (@kacper-serewis): the ID3D12Device10 predicate excused any unequal answers for the seven cases on a Windows 10 host, where only one pair was measured. Each case is now marked windows10_refuses, and windows10_refusal() excuses exactly the layer's S_OK against the host's E_INVALIDARG on a host without ID3D12Device10. Any other difference there, and any difference on a newer host, is a mismatch again. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
@kacper-serewis good catch, done in f8fe26d. The seven cases no longer use the Re-tested on the same host (Windows 10 22H2 19045.5737, RTX 3090, NVIDIA 621.24, main f847748):
AI-assisted (Claude). |
kacper-serewis
left a comment
There was a problem hiding this comment.
At f8fe26d all 252 CPU-simulated control combinations passed. All seven marked cases now detect unexpected E_FAIL mismatches; only layer S_OK versus host E_INVALIDARG on a host lacking ID3D12Device10 is exempted. Prior finding resolved. AI-assisted.
|
Tested
So on two different NVIDIA and AMD adapters of a Windows 10 host, no other case in the seven you excuse is left mismatching. I did not run the full |
VeTkN
left a comment
There was a problem hiding this comment.
Tested f8fe26d on Windows 11 Pro (10.0.26200), RTX 5070, NVIDIA 621.24, MSVC (VS 2026 Build Tools) via scripts/build_runtime.ps1: pass. This is the Windows 11 host the description lists as not tested.
ctest -R ^d3d12_vulkan_device$ -V: passed (12.5 s).- No "Windows 10's runtime refuses it" line was printed, so none of the
windows10_refusescases was excused on this host: they were compared as before and matched. - The only "not comparable on this host" line is
committed: UAV buffer in RAYTRACING_ACCELERATION_STRUCTURE state(ours 0x80070057, host 0x00000000), which goes through itscomparablegate, not the Windows 10 excuse.
AI-assisted (Claude).
|
Tested The branch is 1307 commits behind, so I merged it onto main |
Claimed in the coordination issue as: TEST-724 (my finding and claim in #3381)
What and why
d3d12_vulkan_devicecannot pass on a Windows 10 host. Windows 10's D3D12 (noID3D12Device10) still validates a buffer's initial state and refuses aHARDWARE_PROTECTEDheap, where newer runtimes and the layer accept them. Seven cases compared those answers without a predicate:committed: buffer in state 0x80000000committed: buffer in RENDER_TARGET | UNORDERED_ACCESS stateheap: HARDWARE_PROTECTEDplaced: upload buffer in COPY_DESTplaced: readback buffer in GENERIC_READplaced: default buffer in state 0x80000000reserved: buffer in state 0x80000000TEST-724 lists the first two. The other five are the same kind and only show once the first two pass, because each comparison group fails the test before the next one's result matters.
All seven now carry the
ID3D12Device10predicate that eight neighbouring cases already use (+device10), through a sharedhost_device10()for the two functions that had no such lambda.compare_heap_neighboursgains the same "not comparable on this host" path as the other two comparisons. On a host withID3D12Device10nothing changes: the predicate is true and every case is compared as before.Only
runtime/test/d3d12_vulkan_device_test.cppchanges; no runtime code.Tested
Windows 10 22H2 (build 19045.5737), NVIDIA GeForce RTX 3090, driver 621.24 (Vulkan 1.4.357), MSVC 19.44.35229, Vulkan SDK 1.4.363.0, RelWithDebInfo, on main f847748:
d3d12_vulkan_devicefails withline 5101: argument_mismatches <= 0; with only the first two cases marked it fails atheap_mismatches <= 0, then atplaced_mismatches <= 0.d3d12_vulkan_devicepasses (exit 0). The seven cases printnot comparable on this host (ours 0x00000000, host 0x80070057).ctest --test-dir runtime/build(serial): 131 of 132 pass. The remaining failure isd3d12_compute(CachedPSO host comparison), which is unrelated and described on Tests: per-process temp folders for shader libraries; d3d12_compute skips the CachedPSO host comparison under Wine #3023.Not tested: a Windows 11 host (the predicate is true there, so the comparisons are unchanged, but I could not run it), clang-cl, other GPUs.
AI-assisted (Claude).
Checklist
docs/design.md, with how it was confirmed. (No translator changes.)🤖 Generated with Claude Code