Scripts: print the right register class for root descriptors #1070

Merged
anakatt merged 1 commit from upstream-pr/1079 into main 2026-11-24 15:52:10 +00:00
anakatt commented 2026-11-24 11:23:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T11:23:06Z.


I fixed the root-descriptor register prefixes printed by scripts/re/bvhb_shaders.py. Its string index printed CBV t7 instead of CBV b7, and SRV 11 instead of SRV t11. UAV output was already correct.

What is in it

  • Correct the CBV/SRV/UAV prefix lookup and clarify the script's output documentation.
  • Exercise the actual CLI using synthetic DXBC containers with root-signature versions 1.0 and 1.1. No game files are included.

Tested

  • macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used.

  • python3 -B -m unittest discover -s scripts -p test_bvhb_shaders.py -v: before the fix, both version subcases failed with the incorrect printed registers; after the fix, 1 test passed, 0 failed, 0 skipped (two version subcases).

  • Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive 8f66b3bb5d5bb7884961b57383d852a775a41e07: C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p test_bvhb_shaders.py -v: 1 passed, 0 failed, 0 skipped (two subcases).

Not tested

  • a real XboxBvhBuilder DLL, and the Rust/GPU suite. This changes a Python analysis script, not the runtime.

AI use

  • I used omp (openai-codex/gpt-6-astra) to find the bug, write the fix and synthetic regression, run the Python test, and prepare this description.
<!-- greyfinch-sync:ivall/xcl:issue:6580661531 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1079). Originally posted by [anakatt](https://github.com/anakatt) on 2026-11-24T11:23:06Z. --- I fixed the root-descriptor register prefixes printed by `scripts/re/bvhb_shaders.py`. Its string index printed `CBV t7` instead of `CBV b7`, and `SRV 11` instead of `SRV t11`. UAV output was already correct. **What is in it** - Correct the CBV/SRV/UAV prefix lookup and clarify the script's output documentation. - Exercise the actual CLI using synthetic DXBC containers with root-signature versions 1.0 and 1.1. No game files are included. **Tested** - macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used. - `python3 -B -m unittest discover -s scripts -p test_bvhb_shaders.py -v`: before the fix, both version subcases failed with the incorrect printed registers; after the fix, 1 test passed, 0 failed, 0 skipped (two version subcases). - Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive `8f66b3bb5d5bb7884961b57383d852a775a41e07`: `C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p test_bvhb_shaders.py -v`: 1 passed, 0 failed, 0 skipped (two subcases). **Not tested** - a real XboxBvhBuilder DLL, and the Rust/GPU suite. This changes a Python analysis script, not the runtime. **AI use** - I used omp (`openai-codex/gpt-6-astra`) to find the bug, write the fix and synthetic regression, run the Python test, and prepare this description.
futurepro62 commented 2026-11-24 15:05:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:19Z.


Tested exact head 8f66b3b, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_bvhb_shaders.py at the head: 1 passed, 2 subtests passed.
  • The PR's test file(s) against current main's script (930e8b4): fails for both subtests (version=1, version=2) of test_root_descriptors_print_their_register_classes. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7134080222 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1079#issuecomment-7134080222). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:15:19Z. --- Tested exact head `8f66b3b`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest scripts/test_bvhb_shaders.py` at the head: 1 passed, 2 subtests passed. - The PR's test file(s) against current main's script (`930e8b4`): fails for both subtests (`version=1`, `version=2`) of `test_root_descriptors_print_their_register_classes`. So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
upstream-sync closed this pull request 2026-11-24 16:05:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1070
No description provided.