Repository navigation
GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass - #1630
Conversation
|
Status of the checks, and the two ways to unblock them
The three commits are the fixes described in #1591 (the swap-chain retry storm), #1600 (the two 2560×1440 textures the host refuses, with the GPU probe that narrows it and the ladder that makes them exist) and the display-deferral test in #1413, and each one states what it measured and what it does not resolve. If any of them is against the grain here — the texture ladder in particular trades a refused description for a usable texture and says what it gave up, which not everyone wants in the runtime — say which and I will drop or reshape that commit. No game data in any of it: descriptions, states, error codes and counts only. Written with an AI assistant. |
|
Independent title check of the texture-resource commit Setup Measured
Remaining limitation AI assistance: OpenAI Codex performed the integrations and tests and drafted this report at the account owner's request. Exact runtime model identifier unavailable. No game bytes or game-derived dumps are included. Runtime-measurement correction: A subsequent idle-GPU check, after the title exited, found a competing local CUDA workload with GPU utilization near 98% and about 31 GB of the 32 GB VRAM occupied. The game runs above were not performed with GPU resources isolated. Their FPS, presentation counts and memory/latency observations must not be treated as clean performance benchmarks or evidence of a project-specific stall. The reported test pass/fail counts are the actual observed results; the explicit texture-format/debug-layer errors and local frame-content observations are still observations, but causality of remaining slowdowns/crashes is not established. A clean rerun is needed. No details of the unrelated workload are included. |
|
The ladder now has a test that would have caught the bug it fixes Added in
So the one-shot path — what this pull request changes — returns nothing at all and the ladder returns a usable texture, and that is now checked rather than argued. Before the ladder, a description the host refused left no host copy, and every draw that named one was lost. The two lines also show what the ladder gives up, and that it is the host's answer and not a fixed order: the integrated GPU takes Why it matters beyond this test: the first version of this patch dropped every clear value whose format differed from the resource's, and a debug-layer boot showed it silently dropping 358 legitimate depth clears ( The rest is unchanged: Written with an AI assistant. |
|
Field evidence for the ladder, from the other adapter A 60-second boot on the RX 4090 (adapter 1, driver
Both are logged once, and the boot is otherwise unchanged (1,024 frames, the same 11 programs as Written with an AI assistant. |
From the review on Marvisak#1707: - A new section says when to stop and leave a decision to a maintainer, with the Needs human attention line and the cases that require it. - Measurements must name the adapter and driver, and use the selector from Marvisak#1630 where available. - No checks reported on a first-time contributor's PR means waiting for a maintainer to approve the run, not passing.
|
Read-only comparison on a hybrid laptop with RTX 5070 Laptop GPU (10de:2d18) and AMD Radeon Graphics (1002:1114). Windows PnP lists the NVIDIA device as disconnected, with NVIDIA package 32.0.15.8191 still installed. Standard/high-performance DXGI and the DXCore D3D12 graphics list both expose only AMD and software WARP. D3D12 creates both, with SM 6.6, mesh tier 1, and wave ranges 32–64 on AMD and 4 on WARP. No driver, graphics-mode, or machine changes were made. This is a useful case where adapter preference cannot select a device that Windows does not currently enumerate. AI-assisted using Codex. |
|
Verification: I ran the whole recipe on a branch that contains only the
So the change is not cosmetic: on a Windows session where the display stack answers Environment, since it decides whether you can reproduce it: Windows 11, the agent runs in session 0 (the interactive desktop is session 1), no presentable desktop, adapters Two smaller notes from the same run, so the reviewer does not have to take them on trust:
No game data is involved: test names and HRESULT values only. Written with an AI assistant. |
|
Correction to one line above: eight commits, not six The diff size was right (+967/−50); the count was not. The branch has eight commits, and they are: Each still stands on its own, and for a reviewer who wants them separately rather than as a bundle I am happy to split the branch — the natural cut is the presenter backoff, the texture ladder plus its test, and the adapter work (selector, logging, the every-adapter probe, and the README row). No game data is involved. Written with an AI assistant. |
|
What this branch carries now, and the one rung that waits for #1700 The description listed five changes; the branch carries one of them, the texture-description ladder ( The rungs that drop permissions. You are right and it is the reason the ladder is not safe as it stands: if a texture is made without So: this PR is now only the ladder minus the permission rungs, and it says so. When #1700 lands, the remaining rungs can come back in a follow-up with the boot that shows they help. CI: Written with an AI assistant. |
…ear value, never without a permission
3c036f7 to
e70d5f9
Compare
|
The ladder keeps every permission; the rest of the old description is gone The branch is now one change: when the host refuses a texture description, Why those four rungs and no more: the refusal in #1758/#1755 is of the description, and the state and the clear value are the two things that were not in the log. A rung that drops Each refused rung is logged at The other four changes the old description listed are not in this branch — the swap-chain backoff, the adapter choice, the display-deferral test and the clear-value diagnosis each had their own PR, and mixing them is what made this one unreadable. Measured: Not claimed: that this rung set fixes the 2560x1440 target on its own. With #2332 the description never reaches the host as Written with an AI assistant. |
|
The ladder now has a test, and it pins the one property you cared about Head The rungs are out of assert_eq!(rungs(0x0c), [(0x0c, true), (0, true), (0x0c, false), (0, false)]);
assert_eq!(rungs(0), [(0, true), (0, false)]); // no repeated rung
assert_eq!(rungs(0x0c).len(), 4);The property you objected to — a rung dropping a permission — is now structural and stated:
Written with an AI assistant. |
The ladder keeps every permission; the rest of the old description is gone
The branch is now one change: when the host refuses a texture description,
make_textureretries it without the initial state, without the clear value, and without either, before giving up. Heade70d5f90, rebuilt on63bcca43.Why those four rungs and no more: the refusal in #1758/#1755 is of the description, and the state and the clear value are the two things that were not in the log. A rung that drops
ALLOW_RENDER_TARGETor the unordered-access permission is not in the ladder, for the reason you gave: a texture made without the render-target permission takes no view, and the draw is lost later instead of here, which is a worse failure because it looks like a rendering bug. The case that does need a stand-in is handled where it belongs, by #2332 (stand_in_for, conditional on the host) and byHost::rtvbinding a null view in its own slot rather than skipping it (#1700).Each refused rung is logged at
debugwith its state and whether it carried a clear value, and the final failure keeps thewarn!with the description. The texture's real initial state is set from the rung that worked, so the transitions that follow do not start from a lie.The other four changes the old description listed are not in this branch — the swap-chain backoff, the adapter choice, the display-deferral test and the clear-value diagnosis each had their own PR, and mixing them is what made this one unreadable.
Measured:
cargo test -p victory-gpu --lib→ 231 passed, 0 failed;cargo clippy -p victory-gpu --all-targets --locked -- -D warningsclean.Not claimed: that this rung set fixes the 2560x1440 target on its own. With #2332 the description never reaches the host as
B4G4R4A4on the cards that refuse it, so what this adds is the honest retry for the refusals that remain, and a log line that names which argument it was.Written with an AI assistant.