Scripts: print unbounded BVH ranges in ASCII #2645
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2655"
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 luckyteagirl on 2026-11-26T05:10:35Z.
The BVH shader inspector prints an infinity symbol for an unbounded descriptor range. When stdout uses the common Windows CP1252 code page, printing that symbol raises
UnicodeEncodeErrorand stops extraction even though the DXBC was valid. Spell the range asunboundedso the report remains readable on that console.What is in it
unboundedfor a UINT_MAX descriptor count; preserve the register class and starting register.Tested
b49be183, the new CLI fixture failed at the report print withUnicodeEncodeError. On this branch, full Python script discovery passed 26/26 on Windows Python 3.11.9 and Ubuntu under WSL Python 3.14.4.git diff --checkand independent source review passed. No in-tree consumer of the old infinity glyph was found. PRs #1759 and #1858 edit the same line for different behavior and may need a small rebase.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:21Z.
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-01T08:35:26Z.
Triage (#1607) – head
9d4d960No open or merged PR replaces the
∞inrts0; #1759, #1858 and #2966 edit the same range line but keep∞, so they will conflict textually with this one.Printing
unboundedavoids a UnicodeEncodeError on a cp1252 console, and the test runs the script with PYTHONIOENCODING=cp1252 on a synthetic RTS0 with an unbounded SRV range. 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.
Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:01:16Z.
merge-check
base:
1c8b551475head:
9d4d960e40merge: clean (
git merge --no-editonto1c8b5514,git diff --checkclean;scripts/re/bvhb_shaders.pyandscripts/test_bvhb_shaders.py, +24/-1)build: not run (Tier 0 Python script diff; no Rust code changed)
tests:
python -m unittest -v scripts/test_bvhb_shaders.py-> 2 passed, 0 failed (base1c8b5514: 1 passed; newtest_unbounded_descriptor_ranges_print_in_cp1252passed);python -m unittest discover -s scripts -p "test_*.py"-> 66 passed, 1 error (test_discord_mirror.pyon Windows, same failure on base1c8b5514). Rust workspace tests not run (Tier 0).review: Read the full diff (+24/-1). Replacing the non-ASCII infinity glyph with
"unbounded"inscripts/re/bvhb_shaders.py:33avoidsUnicodeEncodeErroroncp1252Windows consoles. The new test builds a synthetic DXBC RTS0 table with0xFFFFFFFFdescriptor count and verifies exit 0 underPYTHONIOENCODING=cp1252. No problems found.performance: none (offline analysis script in
scripts/re/; zero runtime impact)verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Python 3.15.2, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
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.