Skip to content

GPU: use shader translations without reading cache entries back - #38

Closed
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1795588166-shader-cache-miss
Closed

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1795588166-shader-cache-miss

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

  • Ports the behavior of upstream #2055: a shader translated on a cache miss is returned directly instead of being read back from the cache entry that was just written.
  • Avoids the first-read cost of newly written shader cache files (upstream measured roughly 0.5–3 ms where a virus scanner inspects new files), reducing pipeline creation stalls.
  • Keeps existing fallback behavior for entries that cannot be published or read back later.

Validation

  • cargo fmt --all -- --check
  • cargo run --locked --quiet --package xtask -- policy
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check --locked -p victory-gpu --target x86_64-pc-windows-msvc
  • CARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo clippy --locked -p victory-gpu --all-targets --target x86_64-pc-windows-msvc

Notes

  • A Linux-hosted cargo test -p victory-gpu is not meaningful in this crate because its Windows-only test modules do not compile for the host target; Windows-target check and clippy pass.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Fechando porque a integração fxceless da #29 alterou a base e tornou este diff conflitante/obsoleto; vou reavaliar/reaplicar o que ainda faltar sobre a nova base.

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.

1 participant