notify placed textures at alias views on memory writes #615
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!615
Loading…
Reference in a new issue
No description provided.
Delete branch "RileyW/Darner:pr/alias-texture-writes"
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?
What it changes
watch::stream_written already propagates memory-write notifications to aliased virtual addresses via inplace::shown_elsewhere with exact byte-range intersections, but writing, kernel_writing, and itle_memory_written only notified descriptor::remapped(at, len) for the written VA itself. Placed textures bound through an alias VA therefore missed immediate dirty notifications and waited for periodic rechecks.
This change:
emapped_with_aliases(at, len) in crates/darner-gpu/src/watch.rs, reusing stream_written's byte-intersection logic.
emapped_gathered in crates/darner-gpu/src/descriptor/host.rs so gathered/remapped queues receive exact aliased sub-ranges, plus CPU-only unit test coverage (lias_writes_notify_placed_textures_without_touching_neighbours) verifying both VAs are notified while unaffected neighboring views are untouched.
How it was tested
c8258f9)Checklist
Checked for overlap
Independent hardware result for the alias-to-full-queue case on
aef809e3. I ran it on native Windows 11 Pro (build 26300) with an RTX 4060 and driver 621.40. A local assertion in the test required a physical D3D12 adapter and verified that it selected the RTX 4060.watch::tests::streamed_texture_written_through_an_alias_reaches_a_full_queuepassed with the default flat queue and withDARNER_DUE_INDEX=1. In each run, both alias writes raised the backlog from 8,192 to 8,193. The matching slot came first (0, then 1), all 1,024 GPU pixels read back correctly for each page, and the fixture's checks on the untouched neighbour and previous page passed. The new CPU testalias_writes_notify_placed_textures_without_touching_neighboursalso passed.I ran the three checks individually with
cargo test --locked --offline -p darner-gpu --lib <full test name> -- --exact --nocapture.[pr-fix][memory][rendering] notify placed textures at alias views on memory writesto notify placed textures at alias views on memory writesTest needed — commit
aef809e3; what to check:watch::stream_written already propagates memory-write notifications to aliased virtual addresses via inplace::shown_elsewhere with exact byte-range intersections, but writing, kernel_writing, and itle_memory_written only notified descriptor::remapped(at, len) for the written VA itself. Placed textures bound through an alias VA therefore missed immediate dirty notifications and waited for periodic rechecks.
This change:
emapped_with_aliases(at, len) in crates/darner-gpu/src/watch.rs, reusing stream_written's byte-intersection logic.
emapped_gathered in crates/darner-gpu/src/descriptor/host.rs so gathered/remapped queues receive exact aliased sub-ranges, plus CPU-only unit test coverage (lias_writes_notify_placed_textures_without_touching_neighbours) verifying both VAs are n
Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.View 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.