shader_cache: zero-copy CacheKey::from_parts and get_or_convert_keyed #662
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!662
Loading…
Reference in a new issue
No description provided.
Delete branch "nyutt/merge-shader-cache-key"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
Merge: read fromcrates/darner-gpu/src/shader_cache.rsandcrates/darner-pipeline/src/cache.rs.shader_cache::cached()allocates and copies the entire shader container into[&build[..], ..., container].concat()on every cache lookup (hit or miss).Add
CacheKey::from_partsandCache::get_or_convert_keyedto hash multi-slice cache keys directly with BLAKE3 without concatenating buffers, and passcontainerstraight through toTranslate::convert.How it was tested
a251c17(based onorigin/Merge28a9b42)Merge.Merge.cargo test -p darner-pipeline --lib --locked-> 1 passed (from_parts_matches_new_on_concatenated_bytes), 0 failedcargo clippy -p darner-pipeline -p darner-gpu --lib --locked-> 0 warnings incache.rs; 0 new warnings inshader_cache.rsMerge.Checklist
Merge.Checked for overlap
[pr-performance][shaders] shader_cache: zero-copy CacheKey::from_parts and get_or_convert_keyedto shader_cache: zero-copy CacheKey::from_parts and get_or_convert_keyedView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.