Skip to content

gpu/pipeline: adapter-keyed PSO cache filenames and atomic rename (1/4 of #51, stable-amd) - #180

Open
Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-adapter-pso-cache
Open

Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-adapter-pso-cache

Conversation

@Vladimir-Human

Copy link
Copy Markdown

Re-port of #56 onto stable-amd (v26.11.6, 75022ba).
Supersedes #56 (which targeted main and became conflicting/closed across disjoint branch histories).

Verification on stable-amd (commit e7797a9, Cargo.lock untouched)

  • cargo check --workspace --tests --locked: passed
  • cargo check -p victory-gpu --tests --locked --features diagnostics: passed
  • cargo test --locked -p victory-gpu --lib pipeline:
test result: ok. 35 passed; 0 failed; 0 ignored; 0 measured; 458 filtered out; finished in 0.52s

@HandshakeHackin

Copy link
Copy Markdown
Contributor

I reproduced a shader cache rollback on e7797a9. An open Windows handle temporarily prevented replacement of the adapter’s .bin, so two saves went to .next. After closing the handle, a third save successfully wrote the newest .bin. Reopening the cache then promoted the older .next over that successful save.

The change publishes each completed save to .next first, so a later save supersedes an older pending copy. The regression test failed on the original at reopen, passed with the change, and all 11 pipeline-library tests passed on Windows Server 2022. Change and regression test · Before · After

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants