GPU: name a host pipeline a worker has held for a minute #520

Open
pug205gti6 wants to merge 1 commit from upstream-pr/520 into main
pug205gti6 commented 2026-11-25 01:58:14 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by pug205gti6 on 2026-11-25T01:58:14Z.


Some driver compiles never end. On an RX 9070 XT (Adrenalin 32.0.32029.2010), AMD's compiler kept one pipeline worker on compute 39f0e9aeb156a61c for whole runs while its own heap grew past 30 GB, and the frame line only ever said "(1 being made)".

Each worker now records which pipeline it holds and since when. From the frame statistics, every second, a pipeline held for 60 s or more is named once in a warning with its shaders as stage hash, the hashes VICTORY_SKIP_PIPELINES takes. Pipelines made on the calling thread (make::now, no workers) are not watched: a never-ending compile there stops that thread outright.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6595382782 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/520). Originally posted by [pug205gti6](https://github.com/pug205gti6) on 2026-11-25T01:58:14Z. --- Some driver compiles never end. On an RX 9070 XT (Adrenalin 32.0.32029.2010), AMD's compiler kept one pipeline worker on compute 39f0e9aeb156a61c for whole runs while its own heap grew past 30 GB, and the frame line only ever said "(1 being made)". Each worker now records which pipeline it holds and since when. From the frame statistics, every second, a pipeline held for 60 s or more is named once in a warning with its shaders as `stage hash`, the hashes VICTORY_SKIP_PIPELINES takes. Pipelines made on the calling thread (make::now, no workers) are not watched: a never-ending compile there stops that thread outright.
Revens2 commented 2026-11-25 08:09:01 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by Revens2 on 2026-11-25T07:36:28Z.


Duplicate of #458: @IxMxAMAR opened this patch 46 minutes earlier, and gh pr diff returns the same bytes for both (+108/-2 on 3 file(s), same title).

Please continue in #458 so the review history and any test data stay in one place.
Thanks.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7156050713 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/520#issuecomment-7156050713). Originally posted by [Revens2](https://github.com/Revens2) on 2026-11-25T07:36:28Z. --- Duplicate of #458: @IxMxAMAR opened this patch 46 minutes earlier, and `gh pr diff` returns the same bytes for both (+108/-2 on 3 file(s), same title). Please continue in #458 so the review history and any test data stay in one place. Thanks.
MamaLeVrai commented 2026-11-25 11:10:42 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by MamaLeVrai on 2026-11-25T10:59:25Z.


Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head d6744f6 into main f85101b in a throwaway tree (no conflict). cargo clippy --workspace --all-targets --locked -- -D warnings fails with exactly the errors main itself has on this machine (placed_filler_twins, depth_written, a sort; PR #841 fixes them); with --all-features it fails with the same number of errors as main (4). This PR adds none and removes none. cargo test --workspace --locked: run 1: one failure The failure is indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields, which fails on main itself most runs here (PR #849 fixes its assertion; see issue #850). Run 2: one failure in a different test, inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset; I did not look at it further, and it passed in my earlier whole-suite runs of main. The title was not run, so this says nothing about in-game effect. No game data.

AI-assisted (Claude Code); no game data.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7160439735 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/520#issuecomment-7160439735). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-25T10:59:25Z. --- Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head `d6744f6` into `main` `f85101b` in a throwaway tree (no conflict). `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with exactly the errors `main` itself has on this machine (`placed_filler_twins`, `depth_written`, a sort; PR #841 fixes them); with `--all-features` it fails with the same number of errors as `main` (4). This PR adds none and removes none. `cargo test --workspace --locked`: run 1: one failure The failure is `indirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields`, which fails on `main` itself most runs here (PR #849 fixes its assertion; see issue #850). Run 2: one failure in a different test, `inplace::tests::warp_a_title_buffer_in_place_shows_its_bytes_at_its_offset`; I did not look at it further, and it passed in my earlier whole-suite runs of `main`. The title was not run, so this says nothing about in-game effect. No game data. AI-assisted (Claude Code); no game data.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/520:upstream-pr/520'
git switch 'upstream-pr/520'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/520'
git switch 'upstream-pr/520'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/520'
git switch 'upstream-pr/520'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/520'
git switch 'main'
git merge --squash 'upstream-pr/520'
git switch 'main'
git merge --ff-only 'upstream-pr/520'
git switch 'main'
git merge 'upstream-pr/520'
git push origin 'main'
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
fxceless/victory-fork!520
No description provided.