Repository navigation
d3d12_vulkan_device_test: an allocation-info mismatch says MISMATCH, and the comparison ends with a count (TEST-VK-ALLOC-INFO-OUTPUT) - #1369
Conversation
…and the comparison ends with a count (TEST-VK-ALLOC-INFO-OUTPUT) compare_allocation_info printed its mismatch line (stderr) and the line it prints for every compared texture (stdout) with the same "allocation info <case>:" prefix, so "no allocation info lines" read like a pass criterion although a run with a host device always prints dozens of the second kind. A mismatch now starts with "allocation info MISMATCH", as does the Device4/Device8 layout one, and the comparison ends like the other host comparisons: "GetResourceAllocationInfo against the host on <adapter>: N compared, M mismatches". Test output only; what is compared and what counts as a mismatch are unchanged.
|
Re-checked against current main (0d80bc5), which also changed The rest of ctest also passed except CI is waiting for workflow approval (first-time contributor). AI-assisted. |
|
Reviewed 8d14c29: test-output-only change; the test builds only under Windows/MSVC and needs a host D3D12 Recommendation: Merge |
Claimed in the coordination issue as: TEST-VK-ALLOC-INFO-OUTPUT (#14 (comment))
What and why
compare_allocation_infoinruntime/test/d3d12_vulkan_device_test.cppprinted two kinds of line with the sameallocation info <case>:prefix:allocation info <case>: ours size … alignment …, host size … alignment …;allocation info <case>: alignment …, size ours … host ….So "no
allocation infolines" reads like a pass criterion (it was given as one in the #375 merge note), although a run with a host device always prints dozens of the second kind: 46 on an RTX 5070 Ti, with 0 mismatches.This PR changes the test output only:
allocation info MISMATCH, and so does the Device4/Device8 per-resource layout one.FORMAT_INFO on …: … mismatches):GetResourceAllocationInfo against the host on <adapter>: N compared, M mismatches.What is compared and what counts as a mismatch are unchanged. Without a host device the function still returns -1 before printing anything.
Tested
scripts\build_runtime.ps1(MSVC 19.44, VS 2022 Build Tools, CMake 3.31.6 + Ninja, Vulkan SDK 1.4.363.0): builds; no new warning in the changed lines.ctest -R "^d3d12_vulkan_device$" -V: passed (17.6 s). It printsGetResourceAllocationInfo against the host on NVIDIA GeForce RTX 5070 Ti: 153 compared, 0 mismatches, 46 informational lines and noallocation info MISMATCHline. Before this change, onmain51a6074d2, the same machine printed the same 46 informational lines and no mismatch.GPUs tested: NVIDIA GeForce RTX 5070 Ti, driver 621.24, Vulkan 1.4.357, Windows 11 Pro 26300
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)