Preserve CPU-visible data on GPU-owned readback errors #633
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!633
Loading…
Reference in a new issue
No description provided.
Delete branch "holoslicer/Darner:fix/gpu-owned-readback-errors"
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 correctness tests on Windows x64 and an RTX 3090. Gameplay was not run. This change is for the optional GPU-owned readback path.
Contributor role (optional)
What it changes
On
c8258f95, a generated GPU producer wrote a pattern and a subsequent GPU consumer verified it. WithDARNER_GPU_OWNED=1, injecting a missing COPY engine or a failed readback made the first CPU read return 0 when the corresponding GPU byte was 5. Both eager controls returned the expected data.Enable lazy ownership only after the COPY engine initializes. Retry a recording failure once on a fresh engine while the device is healthy. After submission, check the real fence result, including the device-removed sentinel. On unrecoverable failure, report through the existing fatal GPU path while the block is still protected. A recording failure before submission can recover without exposing stale CPU bytes.
How it was tested
0b8a05505e6cb7f75355cb4ea7b115c020c86187, based onc8258f95569c10fe75b5bfb785d3865b5deeefd9.cargo test --locked -p darner-gpu --lib --features record --profile fast host::upcheck::tests::gpu_owned_readback_failure_paths -- --ignored --exact --nocaptureon a D3D12 adapter. It checks absent-engine eager fallback, recovery after one recording failure, and two terminal cases. The last two check the page protection in the error reporter and use an expected child exit code. The partial-write case checks neighboring GPU-written bytes.cargo test --locked -p darner-gpu --lib gpu_owned::tests::a_removed_fence_value_cannot_complete_readback -- --exact. Passed.Checklist
Checked for overlap
WIP: [pr-fix][rendering][memory] Preserve CPU-visible data on GPU-owned readback errorsto [pr-fix][rendering][memory] Preserve CPU-visible data on GPU-owned readback errors[pr-fix][rendering][memory] Preserve CPU-visible data on GPU-owned readback errorsto Preserve CPU-visible data on GPU-owned readback errorsTest needed — commit
0b8a0550; what to check:On
c8258f95, a generated GPU producer wrote a pattern and a subsequent GPU consumer verified it. WithDARNER_GPU_OWNED=1, injecting a missing COPY engine or a failed readback made the first CPU read return 0 when the corresponding GPU byte was 5. Both eager controls returned the expected data.Enable lazy ownership only after the COPY engine initializes. Retry a recording failure once on a fresh engine while the device is healthy. After submission, check the real fence result, including the device-removed sentinel. On unrecoverable failure, report through the existing fatal GPU path while the block is still protected. A recording failure before submission can recover without exposing stale CPU bytes.
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
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.