Repository navigation
Conversation
|
Tested Environment: Windows 11 Pro build 26300, AMD Ryzen 7 5700X, 16 GB, NVIDIA GeForce RTX 3060 12 GB (driver 610.88), Rust 1.98.1 What the adapters report. From a throwaway test (not pushed) calling
One question, about WARP. With Tested
Not tested: the world, or any title pipeline (no game data); whether the refused programs hang this GPU too. AI-assisted (Claude Code) ran the checks and drafted this comment. |
|
From the side of the wave64 stack (#223 / #233 / #320 / #439, which I maintain), since this PR and that stack decide the same thing for compute on these hosts. Thank you for the runs: a hang at a console-flow dispatch is exactly the report that stack needs. Three points. 1. Which compute programs were running "as 32-lane waves". On 2. A measurement on how a correct form can still hang. The stack's forms are lane-by-lane exact on hardware for hand-assembled programs (RTX 5070 here; others ran them on an RTX 4070 SUPER, an RTX 5080 and an RTX 5090). That is correctness on synthetic input. It does not say a title program meets its loop exits on the data it is given, and when earlier passes are dropped that data is not what the console had. Translated loops are cut after 2^20 iterations per entry. I timed a synthetic console-flow loop on an RTX 5070 (driver 621.24), 8 groups of 64 threads, an empty body and one exchange between the halves per iteration:
So an empty loop that runs to the limit costs about 6 ms per group. Alone that is far from 2 s, but the limit is per entry, so a loop nested in another, or one with buffer reads in its body, gets there. The runs in #71 that stayed in the world for 7 to 14 min with For the dispatch you have (8x1x1, wave64, 3. How the two PRs fit. As written, the refusal goes by the console program's wave size, so with both merged every compute program the stack translates is refused before it runs. With the stack, no compute program reaches the driver in a form that needs 64 lanes: it is split (the module declares Synthetic programs only on my side; no title data. AI-assisted (Claude Code). |
|
RTX 5070, native Windows D3D12 — confirms the wave64 part here, and there is a remaining wave32 compute hang. Setup: Windows 11 Pro 26200.9974, NVIDIA RTX 5070, driver 617.14, in-box D3D12 10.0.26100.9818;
So the wave64 mesh/compute part holds on this card too. Remaining hang with this PR: a 1-list submission of 12 compute pipelines takes 11.34 s and the device goes away, again
They were first bound at frames 1504-1518, and the hang is at ~06:08:18 after the last frame log at 06:08:04. Not breadcrumbed (release build, no DRED). If a wave32 run is expected to survive, these hashes are the next thing to look at; I can rerun with the diagnostics build and DRED if that helps. No game files are included; only log lines and shader hashes. AI-assisted (DeepSeek V4.1 Flash coding agent). |
…tch) wbkepler's Marvisak#579: in diagnostics builds, VICTORY_SKIP_WAVE64=<stage>,... (mesh, compute, vertex, pixel) omits draws and dispatches whose pipeline has a program of a listed stage written for 64-lane console waves, and counts them as VICTORY_SKIP_PIPELINES does. No conflict. Marvisak#578 (the same author's refusal of such programs on hosts without 64-lane waves) is not merged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Seven more upstream PRs are in (Marvisak#493, Marvisak#483, Marvisak#206, Marvisak#469, Marvisak#459, Marvisak#454, Marvisak#579) and the wave64 stack is at Marvisak#439's head 965ce30. Records how each was combined with what the tree had, that a capped view heap keeps 2^18 dynamic slots and why, Marvisak#189 and Marvisak#578 as left out, and a new section with testers' reports from the title: the set without the world-entry hang on three NVIDIA cards and how this tree differs from it, VICTORY_SKIP_WAVE64 as the switch to try, and Marvisak#136 bisected as making every frame black. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
A data point for the compute half of this PR, from a tester's run posted on #439: #439 (comment) On an RTX 5080, So on that card wave64 compute in those forms does not hang the device when the loop limit is 32, which fits the loop-limit reading above and is one run, not a proof. It suggests the compute refusal here would cost geometry on NVIDIA once those forms are in, and that a lower default loop limit may be the safer guard for compute. The default limit with the stack is still untested in the world, and your 8x1x1 dispatch is still the one concrete counter-example, so its hash and group size would still help. AI-assisted (Claude Code). |
|
Thanks @fromthemoonx, @r4tedx, and @Nixitov for the feedback and test data — pushed a follow-up commit addressing both design points:
Verified: |
|
Thanks. Re-tested What the emitter puts in PSV0, and what each adapter accepts. A throwaway test (not pushed) built two one-thread wave32 programs with
So a 4-lane WARP device already refuses Tested
Not tested: title pipelines or the world (no game data). AI-assisted (Claude Code). |
|
Thanks @fromthemoonx for re-testing on RTX 3060 + WARP and catching the |
|
Tested on an RTX 4070 (32-lane waves, driver 32.0.16.2101), on top of #493 + #483 (the pair that stops the device removal on this GPU, see #493). Default loop limit, 300 s,
Overlap with #233: offline pipeline creation on the same GPU ( AI-assisted. |
|
@wbkepler thank you, checking the emitted module's One thing to know for later, not for this PR: the next branch on top of the stack ( Understood on the 8x1x1 dispatch; if whoever has that capture can post its hash and group size, I will look at the form it takes. AI-assisted (Claude Code). |
|
AMD hardware check, Windows 11, Adrenalin driver: RX 9070 (RDNA4, 32-64 lane waves) and Ryzen 9600X iGPU (RDNA2, gfx1036). On a host with 64-lane waves nothing is refused, as intended: |
|
Windows 10 + Pascal data point (no game run, tests only). Setup: Windows 10 Education 22H2 (19045), GTX 1060 6 GB (driver 582.66), i7-10700K, Rust 1.98.1, debug. I tested Tests:
What the adapters report (
So on Pascal this PR changes nothing for mesh pipelines today, because they're refused for having no mesh shaders. It does matter for the compute-shader fallback I'm prototyping in #3. Since the mesh check here comes first, wave64 mesh programs would be refused on 32-lane hosts before reaching the fallback. Given the hangs above, that seems right: the compute form keeps the same lane layout. It means the fallback can only help wave32 mesh programs on NVIDIA until wave64 runs on 32-lane hosts (#233's direction). AI-assisted (Claude Code); runs on my machine. |
… PresentX planes Merges https://github.com/fxceless/victory-fork (main, 4e17478) into this fork. The two rewrote the same GPU and shader code (20 files, 80 conflicts), so the merged tree is fxceless's tree, with two additions it does not have, re-applied on top: - The FidelityFX upscaler answered by AMD's PC FidelityFX SDK when VICTORY_FFX_DIR is set (the pc-fsr branch, f96ad82): applied unchanged. - PR Marvisak#211's multi-plane PresentX compositing (Series S menus): several planes are composited in a list of their own; a single plane keeps fxceless's present path, including presents sent ahead. Dropped in favour of fxceless's own implementations: this fork's lazy host textures and VRAM report, bounds root constants, rectangle geometry shader, mesh index/position changes, the diagnostics switches added with them, and PRs Marvisak#89, Marvisak#492 and Marvisak#578 (fxceless has its own target formats and wave64 handling; Marvisak#578 refused every wave64 compute program on 32-lane GPUs). That work stays reachable on the try/pr-211-578 branch at 575a4ee. Builds with and without the diagnostics feature; the workspace tests pass. Not run in the game yet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
RTX 3060 Ti (8 GB): #578 + #1296 + #1666 on
|
earlier runs on this card (integration/testers u10, ± #1666) |
this tree | |
|---|---|---|
| time in the world | 2.5-6 min, then upload-heap E_OUTOFMEMORY and device removal |
16+ min, still running |
| video memory in use / budget | ~9,200 / 7,256 MB (over budget from world entry) | ~6,000 / 7,085 MB |
| system memory in use / budget | 4,300-5,600 / 7,437 MB, climbing | ~2,000 / 7,437 MB, flat |
| list scratch | 1,500 MB (130-170 with #1666) | 104 MB, flat |
| frame rate in the world | 0.2-0.3 fps | 3.2 fps (308 ms/frame) |
Memory figures come from #1666's host memory: line (QueryVideoMemoryInfo), every 5 s.
What each did, by the log:
- GPU: add VICTORY_TEXTURE_MIP_DROP and DXGI auto-default for <= 8 GB GPUs (fixes #737, #1226) #1296:
auto-enabling VICTORY_TEXTURE_MIP_DROP=1 for <= 8 GB GPU (vram_mb=8024). Video memory stayed ~3 GB lower than without it, which brings this card under budget. - GPU: refuse wave64 mesh and compute programs on hosts without 64-lane waves #578:
host wave lanes min=32 max=32, then one log line each for refused wave64 programs: compute (052a2316a03b9ba1), mesh, and compute with PSV0[64, 64]. No hang; that matches Test report: RTX 4060 Laptop (8 GB), the world hangs the GPU, and VRAM is full #1508's RTX 4060 Laptop run (579 s with GPU: refuse wave64 mesh and compute programs on hosts without 64-lane waves #578). - GPU: small first scratch chunk per list; log host memory against budget #1666: list scratch flat at ~104 MB.
Still there: 512 shader does not translate lines; ~4,250 draws dropped per frame without a host pipeline and ~4,900 indirect. no host texture comes up for formats 86 and 115, the packed 16-bit targets #89 handles; #89 is not in this tree.
The two runs are not the same tree: u10 carries far more translated shaders and therefore more GPU work. So the time comparison says this set is stable on 8 GB. It does not isolate which PR buys the stability.
Counts and messages only; no game data.
|
@cyudev — label keeper checking in, since our census is cited as the baseline: treat 1,151 as a ceiling, not the expected refuse count. Our One data request for the stability isolation: if a variant run drops #578 from that exact tree, the refuse/no-refuse diff plus your 3.2 fps baseline tells the thread what 578 costs in world, and with #1296 auto-gating on VRAM the matrix stays cheap. Happy to fold any per-program lists into the labels the same way as before. Written with an AI assistant. |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
|
Rebased this onto current It is open as #1922 in case the maintainer prefers merging a ready branch. If you would rather update this PR yourself, reset One thing I noticed while reading it: |
…n cast (Marvisak#578) A shader view of a typed texture in another format of its family was given the texture's format. For RGBA8 that dropped the sRGB conversion: an sRGB view of a UNORM texture read its texels as linear, and a linear view of an sRGB texture read them converted. On a host that reports CastingFullyTypedFormatSupported (Options3, queried once and logged), an RGBA8 shader view now keeps the sRGB or linear format it asks for. Unordered access views, other format pairs and hosts without the cast are as before. The fix follows the patch proposed in Marvisak#578. Test: rgba8_views_keep_their_srgb_conversion samples one 0x80 texel on the GPU through all four texture/view pairs. Here the sRGB view of the UNORM texture reads 0.2159 with the change and 0.5020 without it. Under the D3D12 debug layer the views raise no messages. Inplace's Rig is pub(crate) so the test can use its queue.
…hosts without 64-lane waves (rebase of Marvisak#578)
What
On hosts whose waves have fewer than 64 lanes (NVIDIA: D3D12
WaveLaneCountMin = Max = 32, in-box WARP:4), pipelines whose shaders require unsupported wave widths are refused early so their draws and dispatches are dropped instead of hanging the GPU or hitting driverE_INVALIDARG.Host::wave_lanes(): queries(WaveLaneCountMin, WaveLaneCountMax)fromD3D12_OPTIONS1once (defaults to(32, 64)if the query fails, so nothing is refused). Logs both bounds at startup and explicitly calls out narrow/software adapters (max < 32, e.g. 4-lane WARP).Shader::wave64(): whether the container's native program runs in 64-lane console waves (cached per container).HostPipeline::new:wave64mesh shaders before translation on< 64-lane hosts.PSV0runtime info (MinimumExpectedWaveLaneCount/MaximumExpectedWaveLaneCount) against the host's[min, max]range.PSV0range (such asWaveSize(32)split emulation in#233/#439) on 32-lane hosts, while refusing consolewave64compute shaders that declareWaveSize(64)or noPSV0wave-lane range on< 64-lane hosts (preventing unsized wave64 compute hangs while keeping per-lane wave32 compute and vertex/pixel shaders running).Why
On 32-lane NVIDIA hosts (RTX 3090 / 4060 Ti / 4070 SUPER / 4090 / 5070 Ti / 5090), world runs without this check hit
DXGI_ERROR_DEVICE_HUNG(TDR) in wave64 mesh or wave64 compute dispatches. Refusing wave64 mesh and unsized/64-lane wave64 compute shaders on< 64-lane hosts serves as a safe default until translator-side fixes (wave64 compute splitting, descriptor/loop fixes) make those programs safe on 32-lane waves.Tests
victory-gpu:emitted_wave_size_checked_against_host_rangeanddxil_wave_lanes_reads_psv0_bounds.cargo clippy -p victory-gpu --all-targets,cargo clippy -p victory --features diagnostics --all-targets,cargo test -p victory-gpu, andcargo xtask policypass.