WIP: Opt-in ordered mesh dispatch fusion, deferred mesh outputs and a compute tiling prototype #601
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!601
Loading…
Reference in a new issue
No description provided.
Delete branch "deama/Darner:pr/8-mesh-fusion"
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
Fourteen commits (the last one fixes the shader cache key for the new switches); the features are all behind switches that are off by default:
gpu: measure pixel-root compatibility of recorded mesh groups
gpu: count compatible pixel-root subruns within mesh groups
gpu: validate ordered mesh dispatch fusion with varying per-draw data
shader: add explicit per-draw mesh fusion variants with semantic admission
gpu: fuse ordered mesh runs through bounded batch prefixes and retained pipelines
gpu: measure mesh fusion GPU selection and prepared execution cost
shader: add shared ordinary and fused mesh transport with uniform selection
gpu: execute admitted mesh batches through a shared full-width pipeline
gpu: keep mesh root runs across unused input-assembler changes
gpu: batch mesh aliases only when exact host pipeline identity matches
gpu: compare final mesh heap state and resolve the effective pipeline once
gpu: prototype exact compute group tiling for selected load-stalled passes
gpu: retain mesh outputs and bound allocations by their complete writes
shader cache: key DARNER_COMPUTE_TILE_SHADERS; the fusion and tiling tests' variables change no translation
DARNER_MESH_ROOT_CENSUS: counts pixel-root-compatible runs and subruns within recorded mesh groups.DARNER_MESH_FUSION=1(needsDARNER_INDIRECT_ROOTS=1): ordered mesh runs are fused through bounded batch prefixes and retained pipelines. The shader translator adds explicit per-draw fusion variants with semantic admission: quad operations stay inside one primitive's quad, and the fusion quad scope covers main's helper-lane fix. A shared ordinary/fused transport with uniform selection (DARNER_MESH_FUSION_SHARED). Mesh roots are kept across unused input-assembler changes. Aliases batch only when the exact host pipeline identity matches. The final heap state is compared.DARNER_MESH_FUSION_SAMPLE/_TIMESmeasure selection and execution cost.DARNER_MESH_OUTPUT_DEFER: mesh outputs are retained, and allocations bounded, by their complete writes. This is exclusive with main'sDARNER_MESH_COUNTS=exact: when that is on, its counts are used.DARNER_COMPUTE_TILING_EXECUTEandDARNER_COMPUTE_TILE_SHADERS: a prototype of exact compute group tiling for selected load-stalled passes.How it was tested
8b9b0804588b9b080458(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): 66 failed, all of which fail on unmodifiedmain(c8258f9556) on this PC too (darner-shader tests that need Shader Model 6.6).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; 94 new tests: 39 ignored, 55 pass.cargo xtask policy: ok (640 files).Checklist
main. No: one experimental feature set across GPU and shader code, stacked on the PRs below.docs/asset-policy.md.Checked for overlap
WIP: [pr-performance][rendering][shaders] Opt-in ordered mesh dispatch fusion, deferred mesh outputs and a compute tiling prototypeto WIP: Opt-in ordered mesh dispatch fusion, deferred mesh outputs and a compute tiling prototypeView 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.