Repository navigation
Conversation
|
Overlap for the reviewers: #1787 (22:33) also drops AI-assisted (Claude Code). |
|
Tested against the real failure, and against the other two candidates: it is one of three causes With the debug layer installed on a machine that reproduces the removal, the same scenario (session 1, window 3840×2160, empty cache, default adapter
So on this machine this change alone is enough to stop the removal, while the texture ladder alone is not — it removes the That is worth saying in the pull request rather than in a later comment: a reviewer testing only this change on an NVIDIA card may see the removal go away and a different one appear later, and it is the id 1419 of #1778 in that case. Full write-up with the chain: #1754 (comment) Still in the log with all three, and a different problem: No game data is involved. Written with an AI assistant. |
|
Correction to my own measurements: those runs were on the RTX 4090, not on the integrated GPU I have been writing "default adapter, integrated DXGI enumerates the adapters in a different order in the two sessions. Measured on this machine, same binary, same moment, with So the default adapter is the integrated AMD in the agent's session and the RTX 4090 in the session where the title runs, which is precisely where every number I published in the last few rounds came from. With my selector in place the run says it plainly: — What this changes, and what it does not:
No game data is involved: adapter descriptions, vendor ids and memory sizes only. Written with an AI assistant. |
|
On the card that refuses it: Re-ran the comparison on the RTX 4090 (driver
So on the NVIDIA card the change does exactly what it claims: the description is made without a permission the format cannot carry, before any device call names it, and the device survives. The log line from Why this cannot be fixed where the rest of the texture work happens: the message is raised by a query ( Also worth saying plainly, because it decides how the fix should be judged: on this machine's integrated AMD the same Still in the log after this change, and deliberately not touched: the capped view heap ( Verification of the branch: No game data is involved: a format number, debug-layer ids, warnings and counts only. Written with an AI assistant. |
|
The 120-second run: frame 2,048, Short follow-up to the table above, because 40 seconds does not prove the device stays: same card (RTX 4090, driver versus That also fixes what the frame does to the card's load: 2,048 frames and 13,312 draws in two minutes means it is not sitting in a corner avoiding the texture that used to kill it. Nothing else changed in the branch; the verification in the comment above still holds. Written with an AI assistant. |
98d8ccc to
b167575
Compare
b167575 to
5abc1cc
Compare
5abc1cc to
85c1815
Compare
…re any call names it The description the title gives its 2560x1440 B5G5R5A1_UNORM targets (render target and unordered access) cannot be named to the host as it stands, and the debug layer says exactly what happens: 'A texture that has D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS set ... must be created with a format that either can be used as unordered access, or cast to a format that could be used as unordered access' — id 599, severity 1, which removes the device (Marvisak#1754). It is raised in GetResourceAllocationInfo, a query made before anything is created, so a ladder of descriptions around CreateCommittedResource cannot help: the device is already going. host_desc now asks the host, once per format, whether the format can be a typed unordered access view, and drops the permission when it says no, so no device call ever names such a description. An answer the host does not give leaves the description alone. Measured on the machine that reports the removal: with it, three runs in a row show no id 599, no device removal, and the boot keeps presenting frames; before it, the same run removed the device at frame 128.
85c1815 to
f1e53b8
Compare
|
Measured both bit choices on the cards where this matters: they agree, so the queue has two pull requests for one fix I ran the two format-support tests side by side on the RTX 4090 (driver
So for the format this is about, Two consequences, and the second is the one worth acting on:
I am not precious about which. Mine is smaller and was measured on the card that fails; yours is the one that reads the documented flag and additionally refuses the unsupported view at creation, which is a real improvement over dropping the permission alone. If you want yours in, say so and I close mine — I would only ask that the tri-state behaviour be kept: when the host cannot be asked, the description should stay as the title wrote it, because dropping a permission that was legal loses a texture's writes silently. If it is easier the other way round, mine is No game data is involved: formats, support masks and counts. Written with an AI assistant. |
|
Tested this fix locally and it's working — it resolves the Specs: Windows 11 (10.0.26200), Ryzen 5 5500, RTX 3050 8 GB, driver 610.88. Running Written with an AI assistant. |
|
Merge check: the three GPU fixes together keep the suites where Nobody can run this from CI, so I did it here:
The one failure in both columns is The GPU suite gained two tests and four skips because those are the tests the three pull requests add (the ladder's attempts, the typed-UAV rule, the sampler fallback), and some of them skip without a host. That is why the counts differ and why they are written out instead of "all green". So, for a reviewer deciding whether these can go in together: they do not regress the suites, and together they change what a boot does — which is the only reason to merge them as a set rather than one at a time. What this check does not cover: it says nothing about the title beyond those 120 seconds, and the run still stops at the terms-of-service screen, which is not a GPU matter. It also does not cover other people's fixes: the cap (#1779) is untouched here and still logs No game data is involved: test counts and frame numbers. Written with an AI assistant. |
|
Automated triage for the maintainers. Needs work.
#1787 overlaps this change. One of the two should carry it forward. CI: Generated by Claude Code |
…mmit Marvisak#2130 was rewritten on top of Marvisak#2120's update, so layering it on the old merges kept two versions of it. This tree is upstream main (940d32f) with all 32 open PRs of 0xkn0wh3r3 at their current commits, the upstream fixes Marvisak#1887, Marvisak#1717, Marvisak#1832, Marvisak#1630, Marvisak#1763 and Marvisak#1613, and the demo-only conformance list; the old history stays as this merge's first parent.
The device removal comes from a description we hand the host, and it is measured: with this, three runs in a row do not remove the device
After installing the debug layer on a machine that has the failure, the message that ends the device is this one and only this one:
Two things make it fatal where a creation ladder would not help:
GetResourceAllocationInfo, a query we make before creating anything, so any retry ofCreateCommittedResource— including the ladder in GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass #1630 — happens after the device is already going;severity=1means it does not come back as a return code.The change
host_desc— the one place a title description becomes a host description — now asks the host whether the format can be a typed unordered access view (CheckFeatureSupport(D3D12_FEATURE_FORMAT_SUPPORT),Support2 & (UAV_TYPED_LOAD | UAV_TYPED_STORE)), caches the answer per format, and dropsALLOW_UNORDERED_ACCESSwhen the answer is no, once per format, with a warning naming the format:The answer is tri-state on purpose: when the host cannot be asked, the description is left exactly as the title wrote it. Dropping a permission that was legal would lose a texture's writes silently, which is worse than the bug.
Verification, on the machine that removes the device
Same setup each time:
mainat70564aeplus this change, release, empty cache, real window (3840×2160), debug layer on or off as noted, default adapter (AMD Radeon(TM) Graphics, driver32.0.21045.29003), session 1.id=599mainmain+ this, run 1main+ this, run 2main+ this, run 3The rule fires twice per run (
format=27andformat=86), and the run continues past the point it used to die.cargo test -p victory-gpu --locked→ 78 passed, 2 ignored.typed_uav_follows_the_format_not_the_request: prints the host's answer per format and asserts the rule (the permission follows the answer) rather than a hard-coded table.cargo clippy --workspace --all-targets --locked -- -D warningsand with--all-features→ clean;rustfmt --checkonresource.rs→ 15 hunks, the same asmain.cargo test --workspace --locked: the one failuremainhas in a headless session (sdr_and_display_deferrals, fixed by GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass #1630), unrelated.What I am not claiming
no host texturefor theB4G4R4A4_UNORM1440p target (that is GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass #1630's ladder) and the view heap capped at 1,000,000 with 310,720 slots past it (NVIDIA: the title's view heap (1,245,184) cannot fit the driver's 1,000,000 limit, and shrinking one title budget value to 140 fits it and removes the world stall #1760) are both still in the log after this change. They no longer remove the device; they still cost the frame.No game data is involved: a description, a format number, warnings and counts only.
Written with an AI assistant.