Repository navigation
Conversation
With XCL_DRED=1 a device removal on nvidia-dev answered every DRED query with 0x887a0004 (not enabled) since the launch preparation landed (xcl-dev#2920): the DRED settings only count for devices made after them, and the preparation's runner makes a device before the title's backend applied them. The settings are now applied once per process at the start of agility::create_device, which every device of a title process goes through (runner, preflight, the title's backend, shaders, textures). Nothing changes when XCL_DRED is unset. Checked on a real removal (RTX 4080, retail title, 145 s after the first frame): the log now has the DRED device state, the page-fault line and the breadcrumb answer instead of "not enabled". Fixes xcl-dev#2920 Assisted-by: Claude Code (Claude Fable 5.2; written by a Claude Sonnet 5.5 sub-agent, reviewed by a Claude Opus 5.5 sub-agent) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Tested PR #2967 ( Environment
Unit tests
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
XCL_DRED=1, a device removal onnvidia-devhas answered every DRED query with0x887a0004("not enabled") since the launch preparation landed: no page-fault line, no breadcrumbs. The DRED settings only count for devices created after they are set, and the preparation's runner creates a device before the title's backend applied them. This PR applies them before the process's first device. Fixes #2920.What is in it
crates/xcl/src/gpu/agility.rs:dred_request()(readsXCL_DRED, as before:pagefaultleaves the breadcrumbs off) andenable_dred_once()(once per process, same settings and log lines as the code it replaces), called at the start ofagility::create_device. Every device of a title process is made there: the runner, preflight, the title's backend,xcl shaders, textures.crates/xcl/src/hle/d3d12x/real.rs: the old block is one call to the same function (it keeps the log line before the device).crates/xcl/src/gpu/agility_tests.rs:dred_request_reads_the_variable, andcreate_device_sets_dred_first, which fails when the call is removed fromcreate_device(checked: 9 passed, 1 failed without it; 10 passed with it).Side effect to know:
XCL_DRED=1now also applies in the launcher's preflight and inxcl shaders, because their devices go through the same function. Nothing changes whenXCL_DREDis unset.Tested
cargo test -p xcl --lib gpu::agility(debug): 10 passed, 0 failed, 0 ignored.nvidia-deva5e2d851with this change and local test patches,XCL_DRED=1. The device was removed 145 s after the first game frame. The log now has "DRED on" at start-up and, at the removal, the DRED device state, a page-fault line and the breadcrumb answer ("no list was in flight"), where the same setup logged "DRED: no breadcrumbs (0x887a0004)" in 20+ earlier removals.Regression run
On the base commit (
nvidia-dev; the block on a commit ofmainthat the check asks for is still queued) and on this PR's head, same title, 120 s,XCL_DREDunset:Not tested
AI use
🤖 Generated with Claude Code