test(agc): share depth raster pipelines across native depth cases #21781
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/21781"
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 chitters2004 on 2026-11-16T19:30:58Z.
What
agc_driver_native_depth_separate_stenciltimes out on Windows llvmpipe onmain(30 s limit), andagc_driver_native_depth_stenciltakes about 20 s. The time goes into pipeline compiles in the test fixture, not into the driver:DepthRasterintests/execution/NativeMultisampleDepth.cppbuilt a render pass, layout, shader modules and one graphics pipeline per sample for every raster it made, because each pipeline baked in that sample's stencil reference.The change:
VK_DYNAMIC_STATE_STENCIL_REFERENCE), set per sample when a raster runs.Device::release, and a guard inCheckDriverPath).Only the test changes. Driver code is untouched.
Tested
Local, Linux lavapipe (LLVM 20.1.2), with the validation and synchronization validation layers:
agc_driver_native_depth_*tests pass, with no VUID or SYNC-HAZARD messages;separate_stencil0.67 → 0.33 s andstencil0.46 → 0.22 s (this device exposes only 4x).Fork CI on this head (run 43925993913): Linux lavapipe gate and Windows pass, and the report is clean. Windows llvmpipe times:
mainnative_depth_separate_stencilnative_depth_stencilnative_depth_clearsnative_depth_clearsis still slow because of its DriverDispatch case. There a driver-recorded HTILE dispatch sometimes waits on its fence for more than 10 s on Windows. That is a separate issue and is not changed here.python3 tools/check_conventions.py --base origin/mainpasses.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)🤖 Generated with Claude Code
https://claude.ai/code/session_011mLh2bE18haVtnPYp4NK3J
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T11:24:38Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing in the inspected diff establishes a blocking defect; the changed behavior still needs a Windows build result confirmed independently.
What I ran
Reviewed head
2e4400a92d6d0cd8143549c4ca3d12da6729883dusing the pinnedrepo_read.pyreader. No build or tests were run.Results
Findings
Blocking
None in the inspected code.
Non-blocking
<map>directly. The new cache usesstd::map; this file’s explicit<map>include is currently inside the Linux-only include block (NativeMultisampleDepth.cpp:130).Not verified
The full 5,187-line changed file was not read; focused reads covered the cache, raster construction and use, device cleanup, and driver-path cleanup. No build, tests, CI report, or physical-console behavior was independently verified.
files.jsonwas not available through the reader; the manifest lists one changed file and marks it included.To get this to a good state
Nothing is required. Optionally confirm the Windows build’s direct header coverage for
std::map.