mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #1795] user_sgpr_census: support MS stage techniques and pairing with PS (USER-SGPR-CENSUS-MS-TECHNIQUE) #1806
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1806
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1795
Author: @abnalstlll-byte
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/user-sgpr-census-ms-technique📝 Commits (1)
1e0554duser_sgpr_census: support MS stage techniques and pairing with PS (USER-SGPR-CENSUS-MS-TECHNIQUE)📊 Changes
2 files changed (+67 additions, -22 deletions)
View changed files
📝
tests/test_user_sgpr_census.py(+29 -1)📝
tools/user_sgpr_census.py(+38 -21)📄 Description
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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.