test(agc): count depth view allocations on Windows #20324
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20324"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by lgqdaxia on 2026-11-15T02:03:34Z.
What
Windows currently compiles out the resident-depth allocation assertion because its counter is glibc-only. Enable that same assertion for Windows/MinGW test builds by counting scalar
operator newcalls inside the AGC DLL.A known allocation inside the DLL must count as one before the existing 16-draw zero-allocation check runs. Allocation requests still use the existing allocator; the glibc path stays unchanged. The counter covers the calling thread's scalar allocations inside AGC.
This extends #17007 and provides Windows regression coverage for #15058. The two PRs can merge independently.
Tested
Windows 11 Pro 10.0.26300, WinLibs GCC 15.2.0, Release/Ninja,
BUILD_TESTING=ON, SPIRV-Tools disabled.2f6d40f29band test head3a0e8ed7a5:agc_driver_graphicsandagc_graphics_profile_drawpass 2/2 on each. The candidate executes the DLL positive control (1) and the warmed 16-draw assertion (0).6b7ff32a11: both cases pass. Restoring only the unfixed depth implementation makes both fail at 16 allocations over 16 draws, so the Windows assertion detects that regression.Focused negative-control composition
Private combined head
95d5d5a05605028595faaeb518b08a986727eec4. The negative control restores onlyGraphics/src/DepthSurface.cppfrom5561bfa9336ed717d05f2183564a0e2e93eb19b7, retaining the checked-reader and counter support. These graphics fixtures use mock Vulkan.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-15T11:09:36Z.
Review: APPROVED
Reviewed — looks good
The reviewed change adds a Windows/MinGW allocation counter for the AGC DLL and a positive control to the repeated depth view allocation test; review was limited to the supplied diff and changed files.
What I ran
Reviewed head
3a0e8ed7a5e6ef36c75fc210530877980136f1a9. No build or tests were run. The author reports Windows test results in the PR description; those were not run by me.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The supplied
files.jsonwas not available through the reader, so I could not independently confirm its exclusions or reviewed-file list. I read the description, commits, manifest, diff, and full text of all four changed files. No other repository files were read. Build behavior, test results, and Windows linker/export behavior were not independently verified.To get this to a good state
Nothing is required.