Repository navigation
shader: prove reflected mesh clip PARAM aliases (Part of #3703) - #3925
Conversation
R0Y00#3924 landed (squashed). Replay only this PR's commit bbafdce onto main: the tree equals git merge-tree --merge-base=82aa325f main bbafdce. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No longer stacked: #3924 has merged. |
R0Y00
left a comment
There was a problem hiding this comment.
Independently reviewed ea024fc. The alias requires one matching reflected clip row, identical enabled sources and unchanged execution scope. The tracked location only advances through contiguous PARAM exports, and only one matching alias is consumed. Rebuilt compile_dxil in Windows MSVC Debug and ran ctest --preset dev --no-tests=error -j 1 -V -R '^native_mesh_clip_param_alias_dxil$': 1/1 passed (three DXIL modules and seven refusal controls). In a local mutation, removing same_sources allowed enabled-source-changed to emit DXIL and the refusal assertion failed. The restored compiler passed again.
Part of #3703
P3 · Unsupported packed vertex export
The census at
368a045dfput 467 programs in this first-refusal row. Of those, 403 reached it after #3832 admitted more staged export masks and 61 after #3844 lowered additional image loads. The census gives no breakdown by PARAM usage, flags or enabled mask.This change targets a source-built reproduction of the same refusal. It accepts a PARAM copy of a provable single POS1 clip-distance row, including partial masks and intervening PARAM exports in the same EXEC scope. The alias needs one matching reflection record, matching columns and mask, and identical enabled VGPR sources. Changed sources, intervening writes, unmatched masks or columns, ambiguous records, cull distance and other usage values still refuse. The fixture verifies 3 DXIL modules and 7 refusal controls.
Depends on
82aa325f(shader/mesh-packed-signature-order). The private census still needs to be rerun to establish how many of the 467 programs use this export form.Verification
Windows 11
10.0.26200.9974, MSVC19.44.35230.0, DXC1.9.2602.17(21d28f727). Microsoft Basic Render Driver (WARP)10.0.26100.9818and NVIDIA GeForce RTX 508032.0.16.2140(621.40). The D3D12 debug layer was unavailable on both adapters.Built with
cmake --build out/build/dev -- -j 6andcmake --build out/build/release --target compile_dxil offscreen_check startup_indirect_draw_indexed -- -j 6.Tested commit
bbafdceb.The existing mesh readbacks passed on the RTX 5080 (5/5 in Debug and Release) and WARP (5/5 in Debug). On Release WARP, the two read-first-lane tests passed and the three allocation tests reproduced #3664. The first allocation test reported
accepted=1 refused=0, with one archived refusal expected. All three passed with synchronous mesh requests.python -B tests/bidi_controls_check.py,python -B tests/docs_links_check.py, andgit diff --check origin/main...HEADpassed.🤖 Generated with Claude Code