Scripts: show register spaces in BVH shader bindings #1749
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1759"
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 ivall/xcl. Originally posted by NemesisDawn on 2026-11-24T20:18:12Z.
Show nonzero register spaces in the BVHB shader binding report so bindings that share a register number can be distinguished.
What is in it
scripts/re/bvhb_shaders.pyreports spaces for root constants, root descriptors, and descriptor table ranges.scripts/test_bvhb_shaders.pycovers zero and nonzero spaces.Tested
2eede34,python -B scripts/test_bvhb_shaders.pypassed both tests on Windows with synthetic root-signature inputs.Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T21:14:38Z.
Tested exact head
2eede34, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_bvhb_shaders.pyat the head: 2 passed, 4 subtests passed.266b845): 2 failed, 2 passed. So the new test catches the problem the PR fixes.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T23:04:44Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T01:18:59Z.
Tested
2eede34dbb94ad3c95f5aa5e128b21ef0bf798e1, with a clean detached worktree before and after both runs. Windows 11 Enterprise Evaluation x64 (26200.9974), AMD Ryzen 7 3800X, portable CPython 3.13.7 x64 (NuGet).python -B scripts/test_bvhb_shaders.py -v— 2 passed, 0 failed, 0 ignored, 0 skipped.python -B L:/XclTooling/pr1759-2eede34/check_mixed_spaces.py -v— 2 passed, 0 failed, 0 ignored, 0 skipped. This local harness ranscripts/re/bvhb_shaders.pyon one synthetic fixture per root-signature version (1.0 and 1.1). It checked the complete stdout line, empty stderr, and byte-for-byte extraction of each embedded DXBC container. Both versions printed these bindings:Not tested
Retail DLLs or game assets, GPU execution, Cargo workspace tests, and GitHub Actions.
AI use
Codex (gpt-6.2-sol) created the temporary harness, ran both suites, and wrote this report.
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T20:05:26Z.
Tested on
2eede34dbb94ad3c95f5aa5e128b21ef0bf798e1and its parentc160d86ef2efe3a07e4dfb473e4fa72eafb413c0. Windows 11 build 26100.9711, Core i7-13700, Python 3.14.3.I ran
python -B scripts/re/bvhb_shaders.py synthetic.bin outwith two generated DXBC containers, one root signature v1.0 and one v1.1. Each had two SRV ranges on register 8: count 2 in space 3, then an unbounded range in space 7. With redirected UTF-8 stdout, the PR head reported both spaces on both lines and the extracted containers matched the source bytes.With
PYTHONIOENCODING=cp1252:strictand redirected stdout, the head and parent both exited 1 withUnicodeEncodeErrorwhile printing the infinity symbol. Each wrote the first container intact, printed no summary and stopped before extracting the second. The encoding failure predates this PR.The candidate follow-up with a regression test prints
unboundedin place of the glyph. Under both encodings it produced both summaries and two byte-identical outputs. The ranges readtable[SRVx2@8 space3,SRVxunbounded@8 space7]. The new regression failed for both versions on the PR head. On the candidate,python -B scripts/test_bvhb_shaders.pypassed 3/3 andpython -B -m unittest discover -s scriptspassed 18/18.Not tested — A retail DLL, shader execution, or the Rust workspace suite. OpenAI Codex (GPT-6) generated the inputs, wrote and tested the follow-up, and prepared this report.
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T17:23:56Z.
Tested head
2eede34dbb94ad3c95f5aa5e128b21ef0bf798e1, merge-base with mainc160d86ef2efe3a07e4dfb473e4fa72eafb413c0. Windows 11 Pro 26100, CPython 3.13.0.py -3.13 -B -m unittest -v scripts/test_bvhb_shaders.py: 2 passed at head (1 at merge-base).py -3.13 -B -m unittest discover -s scripts -p "test_*.py": 17 passed, 0 failed at head; 16 passed, 0 failed at merge-base.Not tested: retail data, GPU, Cargo.
AI-assisted (Claude Code, Claude Sonnet 5.5).
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:35:49Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:41:08Z.
Triage (#1607) – head
2eede34#2966 changes the same descriptor-range line of
rts0inscripts/re/bvhb_shaders.pyand adds the samesummarize_roottest helper, but it prints table offsets, not register spaces: different changes, and whichever lands second will need a rebase.The space fields read are right for both RTS0 versions (range word 3, root-constant and root-descriptor payload word 1). No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.