Skip to content

GPU: adapter choice and logging, presenter backoff, a texture-description ladder, and a display-deferral test a headless session can pass - #1630

Open
fiestorra wants to merge 3 commits into
Marvisak:mainfrom
fiestorra:fix/presenter-backoff-and-texture-fallbacks
Open

fiestorra wants to merge 3 commits into
Marvisak:mainfrom
fiestorra:fix/presenter-backoff-and-texture-fallbacks

Conversation

@fiestorra

@fiestorra fiestorra commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Five small, independent fixes found while measuring the title's boot on this machine, plus the correction they forced: the boots I described in #1591, #1600 and #417 ran on this machine's integrated GPU, not on its RTX 4090. D3D12CreateDevice(None, …) takes DXGI's default adapter, which here is AMD Radeon(TM) Graphics (adapter 0, driver 32.0.21045.29003); the RTX 4090 is adapter 1 (32.0.16.2124, the 621.24 NVIDIA marketing version). The two commits about adapters below are that finding and its fix; the first three fixes are the ones described in those issues.

1. GPU: back off when no presenter can be made (host.rs)

A run whose desktop cannot be presented on asked DXGI for a swap chain once per presented frame: 1,654 lines in 60 seconds (about four fifths of the log, 311 KB) and one CreateDXGIFactory2 + CreateSwapChainForHwnd per frame. Two different errors appear (0x887A0022, the transient one retrying is for, and 0x8007000E), and neither line said which step failed: the window, the factory, the swap chain and the copy list all funnelled into one message.

  • Retry { attempts, next } on Host: wait 100 ms, doubling to a 1 s cap, so a state that clears recovers within a second; nothing is asked (and nothing logged) until the retry is due. The resize path uses the same gate.
  • The first failure is a WARN naming the step and the frame size (step="swap chain" width=3840 height=2160 format=28), later ones are DEBUG with the attempt count, and one INFO reports how many attempts failed when a presenter finally appears.
  • presenter() returns Result<Presenter, (PresentStep, Error)>.

Measured in a session with no display, same state, same command: 131 no swap chain lines in 128 presented frames on unmodified ffe310e, 1 with this commit. Five unit tests cover the schedule (100/200/400/800/1,000/1,000 ms), the gate, the reset and a simulated minute at 20 fps bounded to 63 attempts.

2. GPU: try a ladder of descriptions for a host texture (resource.rs)

A windowed boot asks for two 2560×1440 textures and never gets them — CreateCommittedResource answers E_INVALIDARG for B5G5R5A1_UNORM with render-target and unordered-access (format 86, flags 5) and for B4G4R4A4_UNORM with render-target (format 115, flags 1), 6 and 11 seconds into the run, right after the first successful present. A texture with no host copy cannot be an RTV, an SRV or a UAV, so every draw that names one is lost, and the log did not say which argument the host refused.

An ignored GPU test in this PR prints the matrix (cargo test --release -p victory-gpu -- --ignored --nocapture packed_formats): those descriptions are legal on the adapter it asks (adapter 0), with every flag combination tried — only ALLOW_RENDER_TARGET | ALLOW_DEPTH_STENCIL is refused; a colour clear value must name the resource's own format; a depth clear value must name the pair's other format (a D32_FLOAT_S8X24_UINT texture is refused with a clear naming 19 and accepted naming R32_FLOAT_X8X24_TYPELESS); and some initial states are refused (for format 86 with flags 5, 0xC, 0x1, 0x2, 0x200 fail).

So the description is fine and the state or the clear value is what the host refuses — and neither was in the log. This commit:

  • logs state, title_state and clear on failure;
  • tries a short ladder, most faithful first: what the title asked for → the common state → without the clear value → without unordered access → as plain memory, keeping a depth target's depth permission throughout and never trying anything twice. The first description the host takes is used, and a warning names what was given up (flags_asked/flags_made, state_asked/state_made, clear_asked/clear_dropped), once per texture;
  • returns the state the texture was really made in, so HostTexture::state starts from the truth instead of the asked state (the transitions that follow depended on that).

The clear value is kept unless the host refuses it. A first version of this patch dropped every clear whose format differed from the resource's, and a debug-layer boot showed it silently dropping 358 legitimate depth clears — hence the order above.

Not resolved here: which argument the host refuses in those two cases. This machine runs in a session with no display (a swap chain cannot be created there at all), and these two textures are only asked for once presenting works, so the failure does not reproduce headless. Anyone with a presentable desktop can settle it from the new log line.

3. HLE: a refused display deferral is the host's state, not a failure (display.rs)

cargo test --workspace --locked on ffe310e fails on a session with no display: modules::display::tests::sdr_and_display_deferrals expects S_OK, and PowerSetRequest(PowerRequestDisplayRequired) answers ERROR_NOT_SUPPORTED (0x80070032, the module's own NOT_SUPPORTED). A console always grants it, so the assertion held on machines with a display and fails on headless CI or a locked session, hiding the suite's real signal. The test now checks the contract that holds anywhere — a granted deferral comes with a handle and closes cleanly, a refused one is NOT_SUPPORTED and leaves no handle — and the refusal is logged at debug!.

4. GPU: say which adapter the device is on, and let it be chosen (host.rs)

The runtime now enumerates the adapters, chooses one by VICTORY_D3D12_ADAPTER (a decimal index or part of a description, any case) or else index 0 exactly as before, and logs the choice:

INFO victory_gpu::host: host GPU adapter="AMD Radeon(TM) Graphics" index=0 vendor=0x1002 vram_mib=485 software=false
INFO victory_gpu::host: host GPU adapter="NVIDIA GeForce RTX 4090" index=1 vendor=0x10de vram_mib=24138 software=false

Both were exercised with a 25-second boot: the default and VICTORY_D3D12_ADAPTER=1 reached frame 512 with the same 11 programs, so the title runs on either. The ignored mesh_tiers probe prints what each adapter says:

adapter 0, AMD Radeon(TM) Graphics adapter 1, NVIDIA GeForce RTX 4090
D3D12_OPTIONS7 mesh tier not supported tier 1
highest device feature level 12.1 12.1 (12.2 refused)
shader model 6.6 6.6

5. Shaders: the offline host takes the same adapter selector (victory-shader/emit/host.rs)

translate --pipelines builds its own device, so it ignored the selector and its verdicts were the integrated GPU's. With the same selector it created a device on the RTX 4090 and the whole-archive census changed shape:

adapter 0 (integrated) adapter 1 (RTX 4090)
vertex and pixel pipelines 12,231 of 12,231 12,231 of 12,231
compute pipelines 1,441 of 1,441 1,121 of 1,441 (320 refused, E_INVALIDARG, e.g. CS_ShadowRenderTiledMiscPPPC)
mesh pipelines 0 of 8,214 (Unspecified error) 8,214 of 8,214

That is why an offline pipeline verdict here has to name the adapter. The 320 compute refusals on the 4090 are the wave64 family the NVIDIA reports describe (#578, #1001, #1107); the mesh half is simply unavailable on the integrated GPU, which the runtime already checks (host.rs:324) and the offline tool did not.

Verification

  • cargo test --workspace --locked → green with these five commits; without the display one, that test is the only failure on this machine.
  • cargo test -p victory-gpu --locked → 57 passed, 4 ignored (2 pre-existing, the two GPU probes here); -p victory-hle → 94 passed; -p victory-shader → 120 passed, 1 ignored.
  • cargo clippy --workspace --all-targets --locked -- -D warnings, and the same with --all-features → clean; rustfmt --check clean for every line this PR adds.
  • Runs: 60-second boots with the debug layer and 25-second boots on each adapter, described above.

No game data is involved: descriptions, states, error codes, adapter names and counts only.

Written with an AI assistant.

@fiestorra

Copy link
Copy Markdown
Contributor Author

Status of the checks, and the two ways to unblock them

CI for this head is in action_required (https://github.com/Marvisak/VIctory/actions/runs/45476638884): GitHub holds the workflow for a first-time contributor until a maintainer approves it, so gh pr checks reports nothing yet and the merge state is UNSTABLE only for that reason. Clicking Approve and run on that run is enough for this one; a collaborator invite would let later PRs run CI on their own, if that is preferable.

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.

@omeyasawant

omeyasawant commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Independent title check of the texture-resource commit 964cdbd67ef1fa8ecb0fa0ddbd17294183167146 on an RTX 5090.

Setup
Windows 11 Pro 10.0.26200; i7-14700K; 192 GiB RAM; RTX 5090 driver 32.0.16.1088; Rust 1.98.1 MSVC; diagnostics build. This is a local integration, not the complete PR: #189 head 54b333f plus #967 adapter selection. Before texture commit: local 2c77331; after: dc5210e. Both runs explicitly log RTX 5090 selection and Emulate wave64 mode. No driver changes between runs.

Measured

  • Before: 2560x1440 textures in formats 86 (flags 5) and 115 (flags 1) fail with E_INVALIDARG; inspected presented frames 120 and 600 are black.
  • After applying only the texture commit: both are created via fallbacks (86: flags 5 -> 1, clear retained; 115: flags 1 -> 0, clear dropped). No no host texture message in the run. A locally inspected frame 600 contains the intro video; frame 1200 contains loading artwork. No captures are attached under the asset policy.
  • cargo build --profile diag -p victory --features diagnostics --locked: passes.
  • cargo test -p victory-gpu --locked -- --test-threads=1: 58 passed, 0 failed, 2 ignored on this integration. Full shader/workspace results on the underlying Shaders: emulate Wave64 compute shaders on Wave32 and narrower hosts #189 branch were posted there; the complete combined workspace was not rerun for this report.

Remaining limitation
The title begins world submissions (about 2500-2700 draws/frame) but slows to roughly 0.2 FPS and exits with GPU removal / DXGI_ERROR_INVALID_CALL (0x887A0001). No correctly rendered world or gameplay is verified. This result supports texture creation and visible video, not an overall gameplay claim or proof of the later crash's cause. Initial-settings state and scripted Enter input were reused; this is not a synchronized FPS benchmark. Only two illustrative frames were inspected, not every frame.

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.

@fiestorra

Copy link
Copy Markdown
Contributor Author

The ladder now has a test that would have caught the bug it fixes

Added in dc73cce to crates/victory-gpu/src/resource.rs: an ignored GPU test, a_refused_description_still_leaves_a_texture, that makes the creation the old code made — the B5G5R5A1_UNORM 2560×1440 target with render-target and unordered-access, and a clear value naming a format the resource does not have — and checks both arms:

the one-shot creation is refused: The parameter is incorrect. (0x80070057)
host texture: 2560x1440 format 86 flags 0x5 of the 0x5 asked, state 0x4     <- integrated GPU
host texture: 2560x1440 format 86 flags 0x1 of the 0x5 asked, state 0x0     <- RTX 4090

cargo test --release -p victory-gpu -- --ignored --nocapture a_refused_description_still_leaves_a_texture

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 B5G5R5A1_UNORM with a UAV and keeps both permissions (flags 0x5), while the RTX 4090 refuses that format with a UAV and the texture is made as a render target only (flags 0x1), with the common state. The test asserts the portable part — the texture exists, its format is the one asked for, the render-target permission survives, and the state is one the texture may be made in — so it passes on both instead of pinning one driver's answer.

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 (D32_FLOAT_S8X24_UINT made from a clear naming R32_FLOAT_X8X24). A test that runs the real device would have failed that version in one second.

The rest is unchanged: cargo test -p victory-gpu --locked → 57 passed, 5 ignored; cargo clippy -p victory-gpu --all-targets --all-features -- -D warnings clean; rustfmt --check clean on the file.

Written with an AI assistant.

@fiestorra

Copy link
Copy Markdown
Contributor Author

Field evidence for the ladder, from the other adapter

A 60-second boot on the RX 4090 (adapter 1, driver 32.0.16.2124, with this pull request applied) shows the ladder taking over for the exact two targets it was written for, and what it gives up:

host texture made only as a fallback flags_asked=5 flags_made=1 clear_asked=86  clear_dropped=false
host texture made only as a fallback flags_asked=1 flags_made=0 clear_asked=115 clear_dropped=true
  • The B5G5R5A1_UNORM target: the host refuses its UAV permission, so it is made as a render target only, with the clear value kept — the clear was never the problem there.
  • The B4G4R4A4_UNORM target: the host refuses the render target as well, and refuses the creation with the clear value in the resource's own format, so the only description taken is plain memory with no clear. Without the ladder there would be no host copy at all.

Both are logged once, and the boot is otherwise unchanged (1,024 frames, the same 11 programs as ffe310e). The open question — whether the ladder should stop before plain memory, since a flags 0 texture can never be an RTV — is in #1600 (comment), because it is a policy choice rather than a measurement.

Written with an AI assistant.

Calvix2k added a commit to Calvix2k/VIctory that referenced this pull request Nov 24, 2026
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.
@aycow

aycow commented Nov 24, 2026

Copy link
Copy Markdown

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.

@fiestorra

Copy link
Copy Markdown
Contributor Author

Verification: main's suite is red on this machine on exactly the test this pull request relaxes, and green with it

I ran the whole recipe on a branch that contains only the draw.rs change from #1700 (so its display.rs is main's), on the same machine I have been measuring on:

cargo test --workspace --locked
thread 'modules::display::tests::sdr_and_display_deferrals' panicked at
  crates\victory-hle\src\modules\display.rs:188:9:
assertion `left == right` failed
  left: -2147024846      # 0x80070032, E_NOT_SUPPORTED
 right: 0                 # S_OK

0x80070032 is exactly the code this pull request's sdr_and_display_deferrals change accepts alongside S_OK, with contract assertions on what each path must leave behind. On this branch (with it) the same command exits 0:

cargo test --workspace --locked                                   # all binaries ok, 0 failed
cargo clippy --workspace --all-targets --locked -- -D warnings    # clean
cargo clippy --workspace --all-targets --all-features -- -D warnings   # clean

So the change is not cosmetic: on a Windows session where the display stack answers NOT_SUPPORTED for that deferral, main fails its own test suite, and this branch does not.

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 AMD Radeon(TM) Graphics (driver 32.0.21045.29003) and RTX 4090 (driver 32.0.16.2124); the failing call is the display deferral, so the adapter is irrelevant and the session is the likely reason. If your CI runners are headless Windows machines, main is probably red on this test there too — which would explain a failing check without a code defect, and this pull request removes it.

Two smaller notes from the same run, so the reviewer does not have to take them on trust:

  • rustfmt --check on crates/victory-gpu/src/host.rs reports 25 hunks on this branch and 25 on main — the same pre-existing ones, so nothing here adds formatting debt (I did not reformat other people's code).
  • The diff is +967/−50 over six commits, each self-contained: the adapter choice and its logging, the presenter retry backoff, the texture description ladder, the display deferral, the offline adapter selector, and two GPU tests.

No game data is involved: test names and HRESULT values only.

Written with an AI assistant.

@fiestorra

Copy link
Copy Markdown
Contributor Author

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:

805e365 GPU: back off when no presenter can be made
964cdbd GPU: try a ladder of descriptions for a host texture
10bc4e3 HLE: a refused display deferral is the host's state, not a failure
8ffef90 GPU: say which adapter the device is on, and let it be chosen
187bfb7 Shaders: the offline host takes the same adapter selector
83b7393 GPU: the mesh-tier probe asks every adapter, not only the default
dc73cce GPU: a GPU test for the description ladder
f15a9f9 README: document VICTORY_D3D12_ADAPTER

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.

The reported boot failure (Marvisak#1758, Marvisak#1755) is this description: 2560x1440
B4G4R4A4_UNORM with ALLOW_RENDER_TARGET, which NVIDIA drivers refuse, so
main's make_texture returns nothing and the draws that name it have no
target at all. The ladder keeps a texture here (as plain memory on an RTX
4090 with driver 32.0.16.2124, measured), which is what the draws need to
skip rather than the device needing to stop.

Marvisak commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Needs work. The branch carries only the texture-description ladder (attempts() / make_texture() in crates/victory-gpu/src/resource.rs), while the description still lists five fixes; please update it. CI passes.

The rungs that only change the initial state or drop the clear value look fine. The rungs that drop permissions cause a new problem. If the texture is made without ALLOW_RENDER_TARGET (the RTX 4090 run shows flags 1 → 0) or without unordered access, host_resource() still returns it. State::set_targets (draw.rs) and the clear path in list.rs then call host.rtv() and transition it to RENDER_TARGET, which D3D12 does not allow on such a resource. Before this change those draws were skipped cleanly; now they make invalid API calls. Either stop the ladder before dropping permissions, or have the RTV/UAV and transition paths check the host texture's real flags (#1613 adds such checks for the RTV side). Also, the doc comment's texture_ladder filter does not match the test name.

Update after your reply: the head has not changed. A combined boot that stops losing the device is useful to know, but the suites and a 120 s boot would not show an invalid RTV or barrier on a texture made without that permission. Only the debug layer would, so the point above stands.


Generated by Claude Code

@fiestorra

Copy link
Copy Markdown
Contributor Author

Merge check: the three GPU fixes together keep the suites where main has them

Nobody can run this from CI, so I did it here: main 940d32f with #1630, #1832 and #1778 merged into one tree (they touch resource.rs, the descriptor heap and the shader cache, and they do not conflict), then the tests and a boot.

main alone the three merged
cargo test --workspace --locked 26 suites ok, 1 failure 26 ok, 1 failure — the same one
cargo test -p victory-shader --locked --lib 247 passed, 3 ignored 247 passed, 3 ignored
cargo test -p victory-gpu --features diagnostics --lib 146 passed, 2 ignored 148 passed, 6 ignored
boot, 120 s, RTX 4090 32.0.16.2124, session 1 device removed ×2, dies at frame 64 0 removals, 2,048 frames, 13,312 draws

The one failure in both columns is victory-hle::modules::lifecycle::tests::showing_a_title_window_shows_its_stand_in, which fails on main too in a session without a desktop — it is the agent's environment, not the change.

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 host view heap capped at 1000000 once per run.

No game data is involved: test counts and frame numbers.

Written with an AI assistant.

fiestorra added a commit to fiestorra/VIctory that referenced this pull request Nov 25, 2026
…d of resource.rs

The test for a query's samples was appended to the end of `resource.rs`'s
test module, which is where Marvisak#1630 also appends the texture ladder's tests:
two pull requests that touch nothing of each others', and a conflict at merge
time for whoever takes them both.

Moving it up next to the placed-resource test leaves both files' tails free,
so the two merge in either order. The test is unchanged; only its position
is.
0xkn0wh3r3 added a commit to 0xkn0wh3r3/VIctory that referenced this pull request Nov 25, 2026
…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.
@imrealynailong

Copy link
Copy Markdown

The ladder removes the texture-creation failures here, but the world is still a black frame — so it is not the black-screen cause on this card

Tested on a card the PR has not been reported on, stacked under the three fixes a run needs to reach the world at all on NVIDIA. Reporting the negative result because it narrows where the black frame actually comes from, and because #904 (which proposes the missing pc_format fallbacks as the cause of its black world) has no verification yet.

Setup

RTX 4060 Laptop (Ada, 8 GB), driver 32.0.15.6607, Windows 11 build 26200, i7-13620H, 16 GB. main 940d32f with #2121 (40bd210, view-heap paging), #1763 (50d91b1, typed-UAV refusal) and #579 rebased (7044040) merged in a separate worktree, then this PR (3c036f7) on top; all merges clean. Diagnostics build, --console series-s, VICTORY_KEYS drives the menus, empty cache.

I had to stack the others because without #1763 and #2121 the boot dies at the UAV device removal before any world frame.

Result

without this PR with this PR
no host texture (0x80070057) 2 0
format: 115 / 86 / 85 creation failures 1 / 0 / 0 0 / 0 / 0
host texture made only as a fallback 0 2 (flags_asked=5 and =1)
highest frame= 1,600 1,518
captured frame (VICTORY_CAPTURE + VICTORY_DUMP_TARGETS) 960×540, 1 unique colour #000000 960×540, 1 unique colour #000000

The ladder is clearly working: the 2560×1440 B5G5R5A1_UNORM creation that used to fail now succeeds as a fallback (host texture made only as a fallback flags_asked=5 flags_made=…), and two such substitutions happen over the run. format: 67 still appears twice but no longer as a creation failure.

But every captured frame is still a single-colour #000000 at 1,586 bytes — byte-identical to the black captures #904 reports on an RTX 5060 Laptop with the same VICTORY_KEYS + series-s recipe.

What that seems to rule out

#904's hypothesis is that the black world comes from the missing pc_format fallbacks for formats 85/86/115/67 and the capped view heap. With #1630 supplying the fallbacks and #2121 removing the cap symptoms (title slot past the host heap: 0 in this run), the picture is still pure black. So on this card at least, neither of those two is what makes the frame black — they were both real defects, and fixing them does not bring the scene back.

Caveat: this is one combination on one card, and the run is 70 s; #1697's frame-time/coverage view says the world also needs the dropped-draw shaders (I still log 141 host pipeline refused here because #2176 is not in this stack). I am not claiming the fallbacks are unnecessary — only that they do not fix the black frame.

What I could do next, if useful

  • Add GPU+shader: translate wave64 programs for 32-lane host waves when WaveLaneCountMax < 64 #2176 (wave32 translation) under this stack so the 141 wave64 refusals go to 0, and re-capture: that would separate "black because draws are dropped" from "black because the draws that run produce nothing".
  • Same with VICTORY_DUMP_TARGETS=1 already on: I can report which render targets at a given frame are non-black, which should say whether the G-buffer is being written at all.

Logs and the capture directories are available on request. main was not modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants