Repository navigation
Compare explicit depth in the paired pixel shader sweep - #6458
kacper-serewis wants to merge 13 commits into
Conversation
…ir pass-through geometry shader (VKS_GS)
…lback; the 61 are the 16-bit interpolants
… that is not on main yet
…ent; a bary-fallback shader with no companion is reported before launch
…Leonida into feat/ps-sweep-readback
|
AI-assisted review. The Windows MSVC build of Run these commands from the repository root with the Visual Studio 18 2026 generator and Vulkan SDK 1.4.363.1: cmake -S runtime -B E:/Leonida-review-work-build -DFETCHCONTENT_FULLY_DISCONNECTED=ON
cmake --build E:/Leonida-review-work-build --config RelWithDebInfo --target vk_ps_sweep --parallel 4MSVC reports C2397 at lines 567 and 746 of The Python sweep suite has 20 passes and two GPU skips. The build fails before the GPU tests can run on this head. |
|
Independent GPU follow-up on With |
devnull34
left a comment
There was a problem hiding this comment.
Tested and verified at commit \5f69729a5\ on Windows 11 (Build 26300): pass.
- \python -I tests/test_ps_sweep.py: 22 tests OK (0.171s, 2 skipped as expected).
- \ ools/ps_sweep.py --help: --depth\ and --occlusion\ flags verified.
- \python -I tests/test_docs_cli_flags.py: 3/3 passed.
- \python -I tests/test_text_write_line_endings.py: 3/3 passed.
- \git diff --check HEAD~1..HEAD: clean.
- Diff review:
untime/test/vk_ps_sweep.cpp\ properly allocates and binds the optional \D32_SFLOAT\ attachment with \VK_ATTACHMENT_LOAD_OP_CLEAR\ and depth test \ALWAYS, enabling bitwise depth comparisons and precise sample counting in \ps_sweep.py compare.
Approve. Clean implementation and test coverage.
TEST-PS-SWEEP-DEPTH claim
Depends on: #6373
Depends on: #5678
Depends on: #4847
Review commit 5f69729 above #6373. Pass --depth to both sweep runs to capture single-sample D32_SFLOAT alongside the color targets. Both comparison modes count bitwise-different depth pixels, and carry non-clear and written counts in tag order. Depth test ALWAYS and enabled writes make the precise samples-passed query count pixels written by this single fullscreen triangle. A clear-valued region can include writes. The query cannot identify their locations. A shader without explicit depth writes rasterized depth.
Windows, GeForce RTX 5070, driver 616.56. Synthetic equal-color draws at depths 1.0 and 0.25 differed in 1,024/1,024 depth pixels. Writing 1.0 versus discard gave identical clear planes and 1,024 versus zero writes. Both GPU tests passed. All 20 CPU sweep tests and three text line-ending checks passed.
Private cached #5347 parent/head translations contained ten paired explicit depth writers. Six pairs used supported varying inputs, no bound descriptors, and verified in-range scalar loads with the default zeroed heap. All six pairs had distinct modules between versions and byte-identical clear depth planes. Three pairs wrote all 1,024 pixels on each side and three wrote zero. This run establishes no private non-clear depth result or correspondence to the seven deferred depth signatures. The other four pairs with descriptor bindings were not exercised. Only aggregate results reported. AI-assisted.