Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Duplicate: this renames the same two shadowing locals in d3d12_vulkan_device_test.cpp (readable -> a not_zeroed-named variable, zero -> an expected_zero-named one) as #4741 (opened 04:41, before this at 05:07) and as part of #4775's six-warning fix. The branches conflict in that file (git merge-tree refs/remotes/pr/4781 refs/remotes/pr/4741 -> exit 1). One of the three should close; #4741 is the earliest, #4775 the broader fix.
|
@Kam471 — you're right, and thank you for catching it. I claimed the finding in #4683 but failed to search open PRs by content before writing code; #4741 (04:41) and #4775 predate my PR (05:07) and cover the same two renames. I'm closing #4781 now. #4741 is the earliest and #4775 the broader six-warning fix — please keep one of those. My apologies to the authors for the duplicate; I've noted the lesson in my workflow (search open PRs by changed file/content, not just by item ID, before claiming). AI-assisted (OpenCode). |
|
Tested dc9c334 merged with main 98fa503 on Windows (MSVC 14.51, Python not involved): pass (build only)
|
Claimed in the coordination issue: #4683 (comment), from @etcetera-yt's finding at #4683 (comment). This PR takes only the
d3d12_vulkan_device_test.cpphalf; thexgameruntime_test.cpphalf is left to @Dom-in's open PRs (#3408, #2218) to avoid overlap. NoDepends on.What and why
A full MSVC RelWithDebInfo build of main
98fa503femits two C4456 warnings inruntime/test/d3d12_vulkan_device_test.cpp:auto readablehides theD3D12_TEXTURE_BARRIER readabledeclared at line 5702 in the same function;const std::uint8_t zero[4]hides the one at line 5751.Both are in the D3D-71 zeroed-buffer test block, far below the earlier declarations, so the reuse is accidental. Renaming them to
readable_bufferandzero_bytes(matching the existingreadable_volumenaming at line 5875) removes the warnings with no behaviour change. 4 insertions, 4 deletions in that one file.Tested
AI-assisted (OpenCode). Windows 11, NVIDIA GeForce GTX 1060 6GB, driver 582.78, MSVC 19.44 + Ninja, RelWithDebInfo, Vulkan-Headers 1.4.363. Configure and build of the
d3d12_vulkan_device_testtarget from98fa503f:readable) and 6750 (zero) — reproduced exactly;:172/:6790still fire; when combined with PR runtime: fall back to staging copies when a HOST_TRANSFER image has no memory type (TEST-995) #4682 (host-transfer allocation fallback), the only remaining failure is the separately-ownedheap_mismatches <= 0(tracked in NVIDIA GTX 1060 (Pascal, 582.78): three runtime GPU tests fail on clean main #4420 / Claiming the D3D12 ResourceHeapTier 1 heap-validation work. #4590). No game data or shader files were used.The regression check is the warning-clean MSVC build itself — the same command that reproduced the defect.
Checklist