diff options
| author | Claude <noreply@anthropic.com> | 2026-11-26 13:29:11 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-26 13:29:11 +0000 |
| commit | f324b94a72169825262dab64b8eb3ba047d3ed70 (patch) | |
| tree | d5ebf6025a213450f346588f55e6721a50dbb5ec /docs/coder.md | |
| parent | a73a57e1339be072baf5522351c8ec7f1482b56b (diff) | |
indirect clamp: a draw record of 2^23 vertices or more runs empty and free (RT-INDIRECT-DRAW-UNFILLED-COUNT)
The clamp cut a garbage draw count to 2^24 vertices and charged it against the
list's 2^27-unit budget. Only records whose words are all 0xFFFFFFFF were
treated as unfilled. A slot with a garbage count but other words set therefore
cost 2^24 units, so eight such records used up the budget and every real draw
after them in the list ran empty.
A census in codec-d/cool_fox's fork of VIctory found 90 records of 2^24
vertices in one list, and that fork treats 2^23 vertices an instance or more as
unfilled. Here such a record now runs empty, keeps its locations and charges
nothing. Draws under 2^23 are unchanged.
indirect_clamp_test: the old garbage cases now expect an empty record. New
cases check the 2^23 edge and 16 garbage counts ahead of a real draw, which ran
empty with the old shader and runs with this one. The list-budget case uses a
real 2^22 x 16 draw. indirect_clamp_spv.h was regenerated with glslangValidator
15.1.0 (-V --target-env vulkan1.2 -Os).
Tested: full ctest (108 tests) on Linux with Mesa lavapipe (llvmpipe, LLVM 19.1.7).
Changes made by Claude Code (AI-assisted).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
Diffstat (limited to 'docs/coder.md')
0 files changed, 0 insertions, 0 deletions