Scripts: show register spaces in BVH shader bindings #1759
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1759
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@NemesisDawn on GitHub · 2026-11-24 20:18 UTC · original
NemesisDawn:fix/bvhb-register-spaces→main· +43 −14 · 2 files · 1 commits · openShow 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
@futurepro62 on GitHub · 2026-11-24 21:14 UTC · original
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
@DavidM1911 on GitHub · 2026-11-24 23:04 UTC · original
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!
@JJAutoCompare on GitHub · 2026-11-25 01:18 UTC · original
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.
@RavenCurseBurg on GitHub · 2026-11-25 20:05 UTC · original · edited 2026-11-25 20:14 UTC
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.
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.