fix(agc): name the shader address and stage in preparation failures #2867

Closed
danzaio wants to merge 2 commits from upstream-pr/2867 into main
danzaio commented 2026-10-10 16:55:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by danzaio on 2026-10-10T16:55:14Z.


PR body draft — fix/shader-failure-address (issue #2062)

What

I chased a crash with no shader name in it and got tired of guessing which shader died.

Astro Bot stops with a bare recompile failure that names no shader, and the request dump only happens on some paths. PrepareShaderWithDiagnostics dumped the request but rethrew the raw error. It now wraps the failure with the shader address and stage, keeping the dump, on every path through it.

Tested

RTX 4050 laptop, Windows, MinGW 15.2, Release. FailureCapture in agc_driver_prepared_shaders_{indirect,uncached,debug} now requires the address and stage prefix with and without the dump: 3/3 fail without the fix, 3/3 pass with it. Conventions check passes.
Not run: the title itself, and the dump-file branch beyond the capture the test asserts.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4812902488 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2867). Originally posted by [danzaio](https://github.com/danzaio) on 2026-10-10T16:55:14Z. --- # PR body draft — fix/shader-failure-address (issue #2062) ### What I chased a crash with no shader name in it and got tired of guessing which shader died. Astro Bot stops with a bare recompile failure that names no shader, and the request dump only happens on some paths. `PrepareShaderWithDiagnostics` dumped the request but rethrew the raw error. It now wraps the failure with the shader address and stage, keeping the dump, on every path through it. ### Tested RTX 4050 laptop, Windows, MinGW 15.2, Release. `FailureCapture` in `agc_driver_prepared_shaders_{indirect,uncached,debug}` now requires the address and stage prefix with and without the dump: 3/3 fail without the fix, 3/3 pass with it. Conventions check passes. Not run: the title itself, and the dump-file branch beyond the capture the test asserts. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-10 16:55:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T16:55:22Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6099934544 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2867#issuecomment-6099934544). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-10T16:55:22Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Pull request closed

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
boykopovar/AnyPS5!2867
No description provided.