GPU-SPIRV-AS-DIAGNOSTICS: Preserve spirv-as diagnostics containing undecodable bytes #1839

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

@⁠delysidemanYT1 on GitHub · 2026-11-25 12:58 UTC · original
delysidemanYT1:gpu-spirv-as-diagnostics → main · +9 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: GPU-SPIRV-AS-DIAGNOSTICS
Claim: #1608

Use UTF-8 for external helper shader assembly and escape undecodable output bytes. A synthetic assembler emitting an invalid byte previously lost its diagnostic; the new regression test checks that the original message remains visible.

Targeted checks on Windows: python -m unittest discover -s tests -p test_run_gpu_tests_python_assembler.py and git diff --check. No game files. AI-assisted (Codex).

**@⁠delysidemanYT1** on GitHub · 2026-11-25 12:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1839) `delysidemanYT1:gpu-spirv-as-diagnostics` → `main` · +9 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: GPU-SPIRV-AS-DIAGNOSTICS Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608 Use UTF-8 for external helper shader assembly and escape undecodable output bytes. A synthetic assembler emitting an invalid byte previously lost its diagnostic; the new regression test checks that the original message remains visible. Targeted checks on Windows: python -m unittest discover -s tests -p test_run_gpu_tests_python_assembler.py and git diff --check. No game files. AI-assisted (Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:07:49 +00:00
Author
Owner

@⁠GeorgiyDemo on GitHub · 2026-11-25 13:20 UTC · original

Tested 65c673e3f on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against main 384abe5b0 (GPU tooling; no GPU run):

  • python3 -I tests/test_run_gpu_tests_python_assembler.py: OK at this head; the same file on main errors 1 — the undecodable-byte diagnostic case is the new coverage.
  • Not run: a real spirv-as emitting invalid bytes; the regression uses a synthetic assembler. The default llvm-mc/spirv-as paths are unaffected by the change.

AI-assisted; synthetic fixtures only, no game data.

**@⁠GeorgiyDemo** on GitHub · 2026-11-25 13:20 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1839#issuecomment-7163632678) Tested `65c673e3f` on Apple M5 Pro (16-core GPU), macOS 26.7.3 (25G342), against `main` `384abe5b0` (GPU tooling; no GPU run): - `python3 -I tests/test_run_gpu_tests_python_assembler.py`: **OK** at this head; the same file on `main` errors **1** — the undecodable-byte diagnostic case is the new coverage. - Not run: a real `spirv-as` emitting invalid bytes; the regression uses a synthetic assembler. The default `llvm-mc`/`spirv-as` paths are unaffected by the change. AI-assisted; synthetic fixtures only, no game data.
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-25 15:37 UTC · original

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

python -m pytest -q tests/test_run_gpu_tests_python_assembler.py:

  • PR: 11 passed. main: 10 passed. The new test passes on Windows.

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-25 15:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1839#issuecomment-7167136819) Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. `python -m pytest -q tests/test_run_gpu_tests_python_assembler.py`: - PR: 11 passed. main: 10 passed. The new test passes on Windows. (AI-assisted test run; output checked by hand.)
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/1839/head:github-bot/gh-1839'
git switch 'github-bot/gh-1839'

Merge

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