Scripts: print unbounded BVH ranges in ASCII #2655

Open
github-bot wants to merge 1 commit from github-bot/gh-2655 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:10 UTC · original
luckyteagirl:codex/bvhb-unbounded-ascii → main · +24 −1 · 2 files · 1 commits · open

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 UnicodeEncodeError and stops extraction even though the DXBC was valid. Spell the range as unbounded so the report remains readable on that console.

What is in it

  • Print unbounded for a UINT_MAX descriptor count; preserve the register class and starting register.
  • Add a synthetic DXBC/RTS0 CLI fixture with bounded and unbounded ranges under CP1252.

Tested

  • On current main b49be183, the new CLI fixture failed at the report print with UnicodeEncodeError. 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 --check and 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 applicable. Only the Python inspector and its synthetic fixture changed.

Not tested

  • Extraction from a retail binary, Rust workspace tests, GPU tests, or a title smoke run.

AI use

  • Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent independently reproduced the main failure and reviewed the patch.
**@⁠luckyteagirl** on GitHub · 2026-11-26 05:10 UTC · [original](https://github.com/xcl-dev/xcl/pull/2655) `luckyteagirl:codex/bvhb-unbounded-ascii` → `main` · +24 −1 · 2 files · 1 commits · open 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 `UnicodeEncodeError` and stops extraction even though the DXBC was valid. Spell the range as `unbounded` so the report remains readable on that console. **What is in it** - Print `unbounded` for a UINT_MAX descriptor count; preserve the register class and starting register. - Add a synthetic DXBC/RTS0 CLI fixture with bounded and unbounded ranges under CP1252. **Tested** - On current main `b49be183`, the new CLI fixture failed at the report print with `UnicodeEncodeError`. 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 --check` and 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 applicable. Only the Python inspector and its synthetic fixture changed. **Not tested** - Extraction from a retail binary, Rust workspace tests, GPU tests, or a title smoke run. **AI use** - Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent independently reproduced the main failure and reviewed the patch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:43 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2655/head:github-bot/gh-2655'
git switch 'github-bot/gh-2655'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2655'
git switch 'github-bot/gh-2655'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2655'
git switch 'github-bot/gh-2655'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2655'
git switch 'main'
git merge --squash 'github-bot/gh-2655'
git switch 'main'
git merge --ff-only 'github-bot/gh-2655'
git switch 'main'
git merge 'github-bot/gh-2655'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.