WIP: Opt-in GPU-upload constants, GPU-local view metadata and window-cache trim; table-copy snapshot fixes #597
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!597
Loading…
Reference in a new issue
No description provided.
Delete branch "deama/Darner:pr/4-table-snapshots-constants"
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?
Not run in the game on Darner. Ported from a local VIctory-NVIDIA branch (before the rename). The notes below describe that branch.
Contributor role (optional)
What it changes
Five commits, all behind switches that are off by default:
Restore mutable sources of cached GPU table snapshots before submission
Grow table snapshot buffers with actual recording use
Add bounded GPU-upload storage for ordered constant snapshots
Retire unreferenced read-only window caches under local memory pressure
Add bounded opt-in GPU-local view metadata with upload fallback
DARNER_TABLE_COPY=2(off by default): a card-written window that a later-recorded but earlier-sent list declared written is restored to its source before submission. Snapshot buffers grow with what a recording actually uses instead of reserving the full ring.DARNER_GPU_CONSTANTS=1: table constant snapshots go to GPU-upload heap pages (64 MiB process limit, 64 KiB pages, a local-budget margin), with the existing scratch path as the fallback.DARNER_WINDOW_CACHE_TRIM=1: unreferenced read-only window caches are retired when local memory is short.DARNER_GPU_VIEW_METADATA=1: the stride and view-address table lives in GPU-local memory, with the upload buffer as the fallback.How it was tested
64bdec5b1564bdec5b15(this branch's head), Windows 10 22H2 with its built-in Direct3D 12 (no Shader Model 6.6), Rust 1.98.1:cargo clippy --workspace --all-targets --locked -- -D warnings: passedcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passedcargo --config 'profile.test.package.darner-shader.opt-level=3' test --workspace --locked --no-fail-fast(the opt-level only speeds up darner-shader's exhaustive float tests): 67 failed: the same 66 as on unmodifiedmain(c8258f9556), which need Shader Model 6.6, plusconsole_insn::tests::clzero_on_a_guarded_line_goes_through_the_guardin darner-loader. This branch does not touch the loader, the test passed on the next branch (which contains this one), and the darner-loader suite failed 1 run in 6 on unmodifiedmainhere, so it looks flaky.maintoo, so its tests were run in batches that survive the abort and compared one by one withmain(main: 1658 pass, 8 fail, 139 need Shader Model 6.6, 81 ignored): no test that passes onmainfails here, none removed; 22 new tests: 7 ignored, 15 pass.cargo xtask policy: ok on the PR 8 head, which contains this branch.GPUUploadHeapSupported(an RTX 4080 did on the VIctory branch). Others fall back.Checklist
main. No: four related opt-in memory placements, stacked on the PRs below.docs/asset-policy.md.Checked for overlap
WIP: [pr-performance][memory] Opt-in GPU-upload constants, GPU-local view metadata and window-cache trim; table-copy snapshot fixesto WIP: Opt-in GPU-upload constants, GPU-local view metadata and window-cache trim; table-copy snapshot fixesView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
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.