tools: offline Scarlett launch diagnosis and visual regression comparison #61

Merged
Valdi320 merged 7 commits from upstream-pr/61 into main 2026-11-25 14:21:41 +00:00
Valdi320 commented 2026-11-24 14:12:00 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-24T14:12:00Z.


Scope

Two offline CPU-only development tools:

  • diagnose_scarlett_run.py: separate appended launch sessions; identify first recorded D3D12 milestones, explicit pipeline/resource/command errors, missing imports, survey RVAs, Wine terminal diagnostics and shader outcomes. Return line references and next investigation checks. Distinguish a nonzero exit, continued assert, terminal exception, and incomplete log without inferring causation or a hang from silence.
  • compare_scarlett_frames.py: compare explicitly aligned RGB/RGBA 8-bit PNGs or matching named sequences, no resizing/alignment/color conversion. Exact-by-default global and per-tile gates, MAE/MSE/PSNR, changed bounding boxes, worst regions, black/flat/repeat observations, absolute-error PNGs. Pillow is optional and not added to runtime requirements.

No changes to game launch or provider behavior. No GPU access or game execution.

Validation

  • 140 distinct Python tests passed (133 in project venv; seven optional image tests run separately using installed Pillow).
  • Actual public issue #39 log: 2,811 lines; first present at 514, page mapping at 548, slot 86 HRESULT 0x8007007e at 541; 64 compute pipeline failure events, 836 distinct shader refusals and 217 successful translations. No exit record; no claim of terminal cause or which module was missing.
  • Controlled appended sessions separate terminal exception, continued assert, nonzero and normal exit.
  • Six synthetic 3840x2160 image pairs (49,766,400 pixel comparisons): identity, single pixel, small localized artifact despite permissive global fraction, black, tolerated one-level changes, and color swap. All gates behaved as expected. Additional controls cover alpha, ROI, partial tiles, dimensions, metadata, animation, and repeated sequence frames.
  • Fixture generator, documentation and receipts included.

Limits

These tools report evidence, not automatic root-cause proof. Captures must be genuinely comparable; real title rendering and gameplay have not been tested. AI-assisted contribution.

<!-- greyfinch-sync:brcly/TuxBox:issue:6583721154 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/61). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-24T14:12:00Z. --- ## Scope Two offline CPU-only development tools: - diagnose_scarlett_run.py: separate appended launch sessions; identify first recorded D3D12 milestones, explicit pipeline/resource/command errors, missing imports, survey RVAs, Wine terminal diagnostics and shader outcomes. Return line references and next investigation checks. Distinguish a nonzero exit, continued assert, terminal exception, and incomplete log without inferring causation or a hang from silence. - compare_scarlett_frames.py: compare explicitly aligned RGB/RGBA 8-bit PNGs or matching named sequences, no resizing/alignment/color conversion. Exact-by-default global and per-tile gates, MAE/MSE/PSNR, changed bounding boxes, worst regions, black/flat/repeat observations, absolute-error PNGs. Pillow is optional and not added to runtime requirements. No changes to game launch or provider behavior. No GPU access or game execution. ## Validation - 140 distinct Python tests passed (133 in project venv; seven optional image tests run separately using installed Pillow). - Actual public issue #39 log: 2,811 lines; first present at 514, page mapping at 548, slot 86 HRESULT 0x8007007e at 541; 64 compute pipeline failure events, 836 distinct shader refusals and 217 successful translations. No exit record; no claim of terminal cause or which module was missing. - Controlled appended sessions separate terminal exception, continued assert, nonzero and normal exit. - Six synthetic 3840x2160 image pairs (49,766,400 pixel comparisons): identity, single pixel, small localized artifact despite permissive global fraction, black, tolerated one-level changes, and color swap. All gates behaved as expected. Additional controls cover alpha, ROI, partial tiles, dimensions, metadata, animation, and repeated sequence frames. - Fixture generator, documentation and receipts included. ## Limits These tools report evidence, not automatic root-cause proof. Captures must be genuinely comparable; real title rendering and gameplay have not been tested. AI-assisted contribution.
trigger337 commented 2026-11-24 14:15:53 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by trigger337 on 2026-11-24T14:15:53Z.


Tested on Linux x86_64 (x86_64-unknown-linux-gnu, Linux 6.17 / CachyOS) with AMD Radeon RX 6900 XT (Mesa 26.2.5 RADV, Vulkan 1.4.333):

• cargo test --manifest-path tools/shader-compiler/Cargo.toml --target x86_64-unknown-linux-gnu: all 79 unit tests passed.
• python3 -m unittest discover -s tests: 133 tests passed (7 optional Pillow image comparison tests skipped cleanly as expected when Pillow is absent).
• Tested diagnose_scarlett_run.py and compare_scarlett_frames.py offline tools.

Very clean and helpful offline observability tooling for triage and log inspection.

agent: yes
AI-assisted: yes

<!-- greyfinch-sync:brcly/TuxBox:comment:7134095797 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/61#issuecomment-7134095797). Originally posted by [trigger337](https://github.com/trigger337) on 2026-11-24T14:15:53Z. --- Tested on Linux x86_64 (`x86_64-unknown-linux-gnu`, Linux 6.17 / CachyOS) with AMD Radeon RX 6900 XT (Mesa 26.2.5 RADV, Vulkan 1.4.333): • `cargo test --manifest-path tools/shader-compiler/Cargo.toml --target x86_64-unknown-linux-gnu`: all 79 unit tests passed. • `python3 -m unittest discover -s tests`: 133 tests passed (7 optional Pillow image comparison tests skipped cleanly as expected when Pillow is absent). • Tested `diagnose_scarlett_run.py` and `compare_scarlett_frames.py` offline tools. Very clean and helpful offline observability tooling for triage and log inspection. agent: yes AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!61
No description provided.