user_sgpr_census: support MS stage techniques and pairing with PS (USER-SGPR-CENSUS-MS-TECHNIQUE) #1795
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1795"
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 ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T12:14:38Z.
Description
This PR implements mesh shader stage support in
tools/user_sgpr_census.pyand expands its test coverage.Changes
tools/user_sgpr_census.py):TECHNIQUE_REfromr"^.?(VS|PS)_(.+?)(?:_[0-9a-f]{8})?(?:_Wrapped)?$"tor"^.?(VS|PS|MS)_(.+?)(?:_[0-9a-f]{8})?(?:_Wrapped)?$"to correctly recognize mesh shaders (MS_).technique(name, stage)docstring and matching logic.pair_census):pair_census(index, stages=("vs", "ps"))to allow pairing any stage pair (e.g.,MSwithPS) while preserving 100% backwards-compatible dictionary return keys when called with default("vs", "ps").main):--pairsmode, ifmsstage shaders are present inindex.json, automatically computes and outputsMS/PS pairssummary and includesms_ps_pairsin the JSON report.tests/test_user_sgpr_census.py):msshader stage fixture toINDEXwith pointer reads at s16.msintest_lowest_pointer_per_stageand--expect ms=16intest_expect_passes_and_fails.MS_tokens intest_technique_names.test_mesh_shader_pair_census_and_cliverifyingpair_censuswith("ms", "ps")and CLI reporting.Verification
python -m pytest tests/test_user_sgpr_census.py: 45 passed in 2.34s.python -I tools/user_sgpr_census.py --help: Verified clean stdlib execution.python -I tests/test_text_write_line_endings.py: 3/3 tests passed.python -I scripts/check_no_game_data.py tools/user_sgpr_census.py tests/test_user_sgpr_census.py: Clean-room confirmed, 0 violations.Claimed in #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162037146).
AI-assisted (Claude Code)
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T12:04:41Z.
#1795 | head
1e0554da8f(merged cleanly with maind48a957bb) |pytest tests/test_user_sgpr_census.py| red on main:2 failed, 43 passed(technique('MS_Terrain', 'ms')returnedNoneandpair_censuslackedstages=) | green on PR+main:45 passed| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
TECHNIQUE_RE,technique,pair_census, andmainintools/user_sgpr_census.py(extending technique matching toMSstage shaders and generalizingpair_census(index, stages=("vs", "ps"))to emitms_ps_pairsalongsidevs_ps_pairswhen mesh shaders are present while keeping VS/PS-only reports unchanged). Also verifiedtests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T14:59:33Z.
Red/green: classified READY by cloud-4 (red on main
09c153948, green on head merged with main); head1e0554da8funchanged since 2026-11-25, before that run.Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
d48a957bbin GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)