Repository navigation
d3d12_translated_draw_test: rename the global extent (C4459 against vulkan_replay.h) - #1868
Conversation
…ulkan_replay.h) The test's global `constexpr UINT extent = 64` is hidden by a local `extent` in runtime/src/vulkan_replay.h, so every MSVC build of the runtime prints `warning C4459: declaration of 'extent' hides global declaration`. It came in with ItsNotRexed#907, whose earlier fix renamed the global `size` to `extent` for the same reason. The global is now `target_extent`, a name nothing under runtime/ uses; the test is otherwise unchanged. Tested on Windows 11 Pro 25H2, MSVC 14.51 + Ninja (scripts/build_runtime.ps1), RTX 5070 Ti / 621.24: the build has no C4459 (main's 49x C4456 in vulkan_replay.h remain; ItsNotRexed#1743 handles them). d3d12_translated_draw_test passes with validation off and on: three draws, 4064/4096 exact, 32 edge pixels, 0 VUIDs. Full ctest with validation: 106/107; the one failure is d3d12_draw's bundle-blend check, which fails on main too (ItsNotRexed#1793). No game files. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested fb34337 merged into
AI-assisted (Claude), on behalf of dev-ewann. |
|
Tested fb34337 on NVIDIA GeForce RTX 5060 (Blackwell, driver 617.42, Vulkan 1.4.351), Windows 11 Pro build 26300, MSVC (VS 2026), LLVM_MC set (native llvm-mc 21.1.8 from scripts\build_llvm_mc.ps1) so d3d12_translated_draw_test is built; scripts\build_runtime.ps1, then ctest -j 4: pass for this change. d3d12_translated_draw_test.cpp compiles with no C4459 in the build log, and d3d12_translated_draw passes. 106 of 107 run tests pass; the one failure is d3d12_draw ("fence signal 4 is not above 30"), which fails the same way on main 003e781 here and is fixed by #1807. (Run with an AI coding agent.) |
Claimed in the coordination issue as a new item: claim.
What and why
Every MSVC build of the runtime prints:
The global is
constexpr UINT extent = 64inruntime/test/d3d12_translated_draw_test.cpp, from #907. That file includesvulkan_replay.h, which has a localextent. #907's earlier fix renamed the globalsizetoextentfor the same reason, andextentcollides too (I reported it on #907).The change
The global is now
target_extent(the render target's side), a name nothing underruntime/uses. All 13 lines that read it change with it. Nothing else in the test changes.Tested
Windows 11 Pro 25H2, MSVC 14.51 + Ninja (
scripts/build_runtime.ps1), NVIDIA RTX 5070 Ti, driver 621.24, Vulkan SDK 1.4.363.0, onmain003e7812:vulkan_replay.h, which XDXR builder follow-up: small-build sort, and MSVC C4456 in vulkan_replay.h (D3D-178) #1743 handles, and 1× ind3d12_vulkan_device_test.cpp).d3d12_translated_draw_testwithLEONIDA_D3D12=vulkan, validation off and on: pass, 0 VUIDs. Three draws, 4064/4096 pixels exact, 32 diagonal edge pixels at the clear colour, as before.ctest -j 4withLEONIDA_VK_VALIDATION=1: 106/107, 0 VUIDs. The one failure isd3d12_draw's bundle-blend check, which fails on currentmaintoo: Tests: wait for the bundle blend draws in d3d12_draw (fence 21, not 4) #1793's fence 21 is already passed there (the pass before it now signals 30), and fix(test): use monotonic fence value (31) for bundle blend pass in d3d12_draw_test #1807 (fence 31) fixes it.No game files. AI-assisted.
🤖 Generated with Claude Code