[pr-fix][rendering][memory] Refresh placed textures after streamed writes through an alias #433
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!433
Loading…
Reference in a new issue
No description provided.
Delete branch "holoslicer/aliased-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?
Offline D3D12 reproduction and fix. Gameplay validation is pending. Refs #396 and #311.
Contributor role (optional)
Not requested.
What it changes
DirectStorage can finish writing through one virtual address while a bindless SRV samples another mapping of the same physical page. Main marks the buffer-watch bits but only passes the destination address to the placed-texture queue. Report the written byte range at each current mapping. Physical destinations already enumerate their mappings.
How it was tested
Tested
083918931eagainstf3840d73d3on Windows 11 build 26300.9818, RTX 3090 24 GB, driver 617.42, Rust 1.98.1. The test uses generated tiled RGBA8 textures.cargo test --locked -p darner-gpu --lib streamed_texture_written_through_an_alias_reaches_a_full_queue -- --nocapture --test-threads=1on both revisions.DARNER_LIGHT_REFRESH=0/1withDARNER_PRELUDE_UPLOADS=0/1.The fix added just the affected slot to the queue in each pass. Both passes finished with the original 8,192 slots pending. The existing late-completion, guard and remap-cursor controls also passed.
No switch or budget defaults changed. This reproduces a specific missed invalidation. In-game frame time, visible flicker, full-VRAM behaviour and other GPUs remain unmeasured. Shader wave size is outside this change.
The asset policy and both workspace Clippy gates passed with warnings denied. The full serial workspace gate failed. The CLI child-exit and shader depth-output checks also failed on clean main. The nested-worker and reservation-split failures were recorded on the same main revision and passed in all eight isolated runs on the fix. Three loopback checks and one temporary-save hard-link check passed when rerun with normal Windows permissions.
Checklist
Checked for overlap
watch.rs.An in-game run of this change, since that was still open.
RTX 4090, i9-14900K, Series X, 1440p, DLSS Quality, frame generation 2x, hardware RT. Base:
mainf3840d7with #310, #274 and #341 (DARNER_RANGE_LOCK=1); B = that tree with0839189merged (no conflict). The same save and drive into the city, 10 min each, the same evening. Note that A was a PGO build and B a plain--profile fastbuild, so if anything B is at a disadvantage on frame times.a texture picked by index changed after its upload with nothing to tell of itwarningsIndependent D3D12 reproduction of the full-queue alias regression on an RTX 4060 8 GB, NVIDIA driver 621.40, Windows 11 build 26300, Rust 1.98.1. I ran it in eight fresh processes: the exact parent
f3840d73with the PR’s test copied in, and PR head08391893, each with all four combinations ofDARNER_LIGHT_REFRESH=0/1andDARNER_PRELUDE_UPLOADS=0/1. I added the same adapter assertion to both revisions to make a hardware skip or WARP fallback fail the test.I ran
cargo +1.98.1 test --locked --offline -j 2 -p darner-gpu --lib watch::tests::streamed_texture_written_through_an_alias_reaches_a_full_queue -- --exact --nocapture --test-threads=1. The built-in fixture writes through an alias and callswatch::stream_writtendirectly. This checks GPU readback and queue ordering on the 4060. Gameplay and the actual DirectStorage API were outside the test.