Repository navigation
vulkan_replay: the postbuild branch's names no longer hide emit's (C4456) (RT-139) - #2296
Conversation
…456) The if-init `info` of the AccelerationStructurePostbuild branch stays in scope through the following `else if`, so the BLAS/TLAS build branch's VkAccelerationStructureBuildGeometryInfoKHR `info` hid it, and the branch's loop `i` hid emit's command index. Both are renamed (`postbuild`, `s`); no change in behaviour.
|
Tested e4e87a6 merged into
AI-assisted (Claude), on behalf of dev-ewann. |
|
Tested e4e87a6 (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 e4e87a6 merged onto AI-assisted (Claude Code); runs on my machine. |
|
Tested e4e87a6 on NVIDIA GeForce RTX 5090, driver 621.24, Windows 11 build 26300 (26H2): pass (2026-11-22)
One thing to fix before merging: the branch is based on 4eb6155, 326 commits behind main 4947579, so the head carries an older test set (111 registered tests against main's 117) and its ctest result cannot be read as a like-for-like comparison. The two declarations this fixes are still shadowed on main today, and the change applies cleanly to 4947579 — I checked that by building main + this patch (0 C4456, 116/117 counted, 0 failed, the five ray-tracing tests 5/5 with and without the validation layer). A rebase onto current main would make the numbers line up. Synthetic inputs only. AI-assisted. |
RT-139 (claimed in #1902; tracked in #2078).
What
emit()inruntime/src/vulkan_replay.hbuilds with two MSVC C4456 warnings onmain4eb6155, both from the postbuild branch #1844 added:VkAccelerationStructureBuildGeometryInfoKHR infohides theAccelerationStructurePostbuildbranch's if-initinfo(line 3174). A variable declared in anifcondition stays in scope through every followingelse if.ihidesemit()'s command index (line 2677).The postbuild branch's two names are now
postbuildands. Nothing else changes, so there's no change in behaviour.Tested
RTX 5090 (driver 616.92), Windows 11, MSVC 19.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363, fresh RelWithDebInfo build:
/W4warnings that remain arexgameruntime.cpp's C4201/C4996, which I've left to xgameruntime: conform XSystemAnalyticsInfo, XPackageGetCurrentProcessPackageIdentifier, XPackageGetMountPath to GDK ABI #1798 (comment there), andbase_reservation.h's C4996 (BUILD-534).d3d12_draw, which fails onmain4eb6155 without this change too (fence signal 21 is not above 30; fix(test): use monotonic fence value (31) for bundle blend pass in d3d12_draw_test #1807).xdxr_descs,xdxr_build,xdxr_build_check,d3d12_xdxr_rtandd3d12_xdxr_rt_checkpass 10 of 10 runs, and pass underLEONIDA_VK_VALIDATION=1with no validation messages.No game files. AI-assisted (Claude Code).