Repository navigation
Port upstream performance wave (pipeline saves, SRV copies, textures) - #13
Merged
devin-ai-integration[bot] merged 4 commits intoNov 25, 2026
Merged
Conversation
Port the relevant part of upstream Marvisak/VIctory#1653 onto the fork's newer parallel-load design. A save serialised the whole host pipeline library and wrote it as one blob even when only a few pipelines changed. The cache is now split into 16 stable shards chosen from each pipeline's hash, so steady-state saves serialise and publish only dirty shards. Same-name loads remain serialised as required by D3D12, while different pipelines can still load in parallel. Stores and serialisation remain under each shard's lock; dirty counts are lowered only after that shard's bytes are published. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream Marvisak/VIctory#1260 (including its #986 base). Structured buffer SRVs whose shadow offset is not divisible by their element stride cannot be addressed with FirstElement on the shared shadow buffer. Their bytes now go into element-aligned upload memory and are bound through fresh dynamic descriptors. Copies are cached per command list by source range and alignment, so repeated draws of the same view share one upload instead of copying the same bytes for every draw. The upstream follow-up measured this as avoiding 286k copies / 35 GB in a few minutes of world rendering and keeping GTT around 4.6 GB on RADV. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream Marvisak/VIctory#603. Rows made of uniform micro-tile runs now copy those runs with compile-time lengths (8/16/32 bytes), letting the compiler inline small copies instead of using a variable-length copy for every run. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Port upstream Marvisak/VIctory#993. Swizzle coordinate tables depend only on tile kind, block size and element size, not on texture dimensions. Layouts now share those immutable tables through keyed OnceLock slots instead of allocating identical vectors for every texture layout. Includes the upstream benchmark example and regression test that layouts with the same key share table storage. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
devin-ai-integration Bot
added a commit
that referenced
this pull request
Nov 25, 2026
The swizzle/de-swizzle lookup tables for tiled texture layouts are pure functions of the tile geometry: build them once per shape in a shared cache instead of per texture. Re-ported onto the fxceless base; the GPU- side parts of the old performance wave (scratch chunks, pipeline library sharding, unaligned SRV copies) conflict with the fxceless host/pipeline architecture and stay out. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Performance-focused upstream wave, selected for high impact and comparatively low review risk:
(source, length, alignment)within each command list. The upstream follow-up measured the sharing change as avoiding 286k copies / 35 GB over a few minutes of world rendering and keeping GTT around 4.6 GB on RADV.texture_layout_benchexample; it runs locally at roughly 130-154 ns/layout for its cases on this VM (no before/after baseline).Not included yet: #1500 and #1799 are larger rendering/texture-upload rewrites with conflicts; #1551 is a larger pipeline scheduler rewrite. This wave intentionally favors contained optimizations first.
Validation on this Linux VM:
cargo run --locked --quiet --package xtask -- policyCARGO_FEATURE_PURE=1 RUSTFLAGS='-D warnings' cargo check --locked --workspace --all-targets --target x86_64-pc-windows-msvc--all-features-D warningscargo test --locked -p victory-formatscargo run --release -p victory-formats --example texture_layout_benchNot run with the title, real GPU, Wine/Proton, or game data here.
Link to Devin session: https://app.devin.ai/sessions/75bbf6b4192940fea34014b13a016bee
Open in Devin Desktop: https://app.devin.ai/desktop/session/75bbf6b4192940fea34014b13a016bee?variant=devin
Requested by: @Personed