Repository navigation
Shaders/GPU: port experimental GTX compute and vertex fallback to current main - #2203
ElSeba0811 wants to merge 5 commits into
Conversation
Preserve buffer address words while exposing image-view dimensions, mip levels and type through the view metadata table. Inspect placed textures without creating host textures; retain conservative descriptor-bit checks. Declare UAVsAtEveryStage for non-pixel/non-compute module UAVs. Compute implicit derivatives use validator 1.8 and matching PSV runtime info. Add handwritten regression fixtures and GTX/WARP sampling checks. Five validator regressions pass; shader suite 274 passed, two known upstream GTX failures, 11 ignored. This is not a gameplay claim. Implemented and reviewed with Claude and Codex assistance.
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Large mixed PR: experimental GTX compute/vertex fallbacks ported — big surface, shader+gpu+docs. Shader half testable but the port is big enough that I'd want it split or at least Windows CI evidence before merge. Static review only here.
Your census reproduces, and most of the gain overlaps open PRsI merged head e35c044 onto Overlap with other PRs, measured the same way on 940d32f:
So for the census, the validator fixes in this PR duplicate #1989 and #1065. Only the 35 from the image metadata change are new. #2091 has 42 programs that this PR does not gain. No shader names or data are included, per the asset policy. AI-assisted (Claude Code). |
|
Tried 1. The 2560x1440 BGRA render target is refused ( 2. - host.device
- .GetCopyableFootprints(d, 0, n, 0, Some(f.as_mut_ptr()), Some(rows.as_mut_ptr()), None, Some(&mut total));
+ host.device.GetCopyableFootprints(d, 0, n, 0, Some(f.as_mut_ptr()), Some(rows.as_mut_ptr()), Some(row_bytes.as_mut_ptr()), Some(&mut total));
...
- let (fa, ra, total) = footprints(&da, count(&da));
- let (fb, rb, _) = footprints(&db, count(&db));
+ let (fa, ra, sa, total_a) = footprints(&da, count(&da));
+ let (fb, rb, sb, total_b) = footprints(&db, count(&db));
+ let total = total_a.max(total_b);
...
- ... && ra[i] == rb[i] && x.Footprint.Depth == y.Footprint.Depth
+ ... && ra[i] == rb[i] && sa[i] == sb[i] && x.Footprint.Depth == y.Footprint.DepthThis code is upstream ( 3. The world hangs the GPU in the BVH and ray-traced passes. With 1 and 2, the run reaches the world and then gets That is presumably walking a BVH that was never built. With Result with 1, 2 and the three skips: 22+ minutes in the world, then I closed it.
The intro credits render (the pink text over black), and audio plays. The world itself stays black. Process RAM is about 20-21 GB. Other debug layer messages, which didn't remove the device:
One run per configuration, loaded from an HDD. Counts, hashes and times only; no game data attached. The two fixes are local commits on top of This comment and the investigation were done with AI assistance (Claude Code), on my own machine. |
|
Follow-up from the same GTX 1070 Ti. I merged #189 ( Merge. There were conflicts in Runs. All use your four variables plus
The 3D world stays black in every run. 2D and UI now render: the start screen's prompts, the intro subtitles, and the in-game HUD with a working minimap (street layout, player arrow, compass, location name). So with #189 this card gets through the intro into gameplay for the first time. New hang (both modes). DRED stops at the same dispatch in the Without #189, What
In One run per configuration, from an HDD. Counts, hashes and times only; no game data attached. The merge and the two fixes are local commits. I can push the branch if it's useful to anyone. This comment and the investigation were done with AI assistance (Claude Code), on my own machine. |
A texture in a format without typed unordered access (B5G5R5A1_UNORM on the GTX 1070 Ti) is refused as a plain committed resource with ALLOW_UNORDERED_ACCESS, but is made when created with castable formats. An unordered view in its own format then removes the device with DXGI_ERROR_INVALID_CALL, with no command list in flight. fits() checked typed-store support only for castable views of another format family. Check the format the host view actually takes (the view's if the texture is typeless or castable to it, else the texture's own, also without a description) for every texture unordered view, and typed buffer unordered views likewise. Refused views get a null view, so writes through them are dropped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@L1DRE yeah, please push the branch with your two fixes and the #189 merge, plus the exact settings for each run. We're testing the same GTX 1070 Ti 8 GB, so that would give us a useful comparison. You have 32 GB RAM and driver 582.53; ours has 16 GB and driver 582.78, with an i7-9700K. I pushed What removed the device here. Our guarded runs of
Fix ( This is the same format as your #1, from a different direction. Your Run with the fix (your four variables, DRED, no skips, no mip drop, no frame capture):
The end came after two 15.7 s submissions whose pipeline sets include We haven't reproduced your format remapping, One difference from your card: here the BVH builders The tested candidate gave 158 GPU-library tests passed, 0 failed, 4 ignored; the regression fails with the old check restored. Both Clippy configurations, the asset policy and This is progress over our earlier crash, not evidence that we've surpassed your results. We haven't locally reproduced your reported HUD/minimap or long-run stability, and your report still has a black 3D world. Our frame capture was off, so we have no verified world-rendering or playable-FPS result. Skipping a pass is a diagnostic workaround, not a rendering fix. The tested EXE is AI-assisted investigation and validation with Claude and Codex, on my own machine. |
|
Automated triage for the maintainers. Needs rebase. This branch conflicts with Generated by Claude Code |
|
Third follow-up from the same GTX 1070 Ti (Pascal: 32-lane waves, no mesh shaders). On upstream with #189 the world stayed black: the G-buffer filled, but the lighting and composite passes were empty because about 100 wave64 compute dispatches a frame were refused ("cross-lane wave operation in divergent control flow", "LDS accesses without a uniform LDS fence in split wave64"). fxceless/victory-fork has its own wave64-on-32-lane lowering without those refusals, but it needs mesh shaders. So I put this PR's mesh fallback on top of it. Port. Base: Joaco9020/mangrove Warm-up ( Hangs at world entry. With only the BVH-builder skips from my first comment, every run lost the device about 3 s after the first world frame (
What fixed it is the fork's own
Picture. The G-buffer is complete: prison yard, parking lot, cars, characters. The lit HDR target shows the scene but dark, and the presented frame is either dark or blown out to white with sun flares, depending on the shot. Notes:
Counts, hashes and times only; no game data attached. The port is three local commits on mangrove. I can push the branch if it helps. This comment and the investigation were done with AI assistance (Claude Code), on my own machine. |
|
@ElSeba0811 thanks, and nice find on the format-86 UAV. It's good that the
None of them has Machine (all runs): GTX 1070 Ti 8 GB, driver 582.53, i5-12400F, 32 GB RAM, Windows 11 23H2 (22631), title 1.0.2.1 on an HDD, Series X profile. Diag builds ( Shared by every run:
The third-comment runs used mangrove's own Input: Enter held about 400 ms on the title screen, plus Enter at the main menu. Memory: process RAM was about 13.6-21 GB on the upstream branches. With 16 GB, your On the BVH builders: on This comment was written with AI assistance (Claude Code), on my own machine. |
|
@ElSeba0811 I merged
On this driver, format 86 never gets as far as a view. Your branch's castable path refuses the 2560x1440 B5G5R5A1 target (flags 5: render target + unordered access). The plain path refuses it too, so the title has no host texture there, and the 2560x1440 format 115 texture is also refused (the debug layer only named the B5G5R5A1 one): (the same two messages follow for the plain The removal here comes from a shader resource view: So it's an SRV in format 67 on an R32_UINT host texture that wasn't made castable to it. The new test fails here before it reaches its assertions: The test's On this machine the stand-ins ( This comment and the testing were done with AI assistance (Claude Code), on my own machine. |
|
Completed GTX fork trial — 2026-11-25 We now have visible partial scene geometry on the GTX 1070 Ti. The image still has large black areas and severely overexposed/blurred regions. The run lasted 582.28 seconds (9m 42s, including loading) and ended when our system commit-memory guard stopped it. Candidate and settingsThese results are for a separate local fork candidate, not the public
Completed hardware run
The log records 203 mesh pipelines created through the compute + vertex path and confirms both direct and indirect fallback dispatches executed. Near the end, 16 ray-tracing-structure walking dispatches per frame were still held because their structures were unbuilt. The final performance report still counted 3,314 draws without a host pipeline (1,262 being made) and 3,052 dropped indirect operations. These are the logger's categories, not an independently deduplicated total. Pipeline creation/translation refusals and null buffer views remain. The final interval also reported 454.4 ms copying back 38.9 MB; that diagnostic is not an additive frame-time breakdown or proof of the sole bottleneck. Memory pressure also affected graphics residency: the final logs reported 7,223 MB of dedicated GPU memory in use against a 7,138–7,139 MB budget, plus 5,691 MB of shared system memory. They counted 5,250 title textures with no host copy yet and 2,818 passes that made none for lack of room. These are investigation leads; they do not prove the cause of each black region. Validation before the runThe mesh-port validation recorded by Claude, plus the independently recorded BC7 checks:
SixNG inspection led to the BC7 anchor hypothesis. The correction preserves endpoint/index semantics and prediction history. An independent BC7 decoder checked 2,280 synthetic cases; the old-behavior control failed as expected. In a bounded sample of 1,235 chunks across 57 stores (7,415,296 BC7 blocks), high omitted-anchor-bit occurrences fell from 1,319,010 to zero, with no reported chunk decode errors. This is not a whole-dataset visual-fidelity test, and the combined run does not isolate BC7's contribution to the visible improvement. Remaining workCorrect lighting, texture fidelity, responsive gameplay and sustained performance are not established. This was one guarded run, not a controlled benchmark. The fallback still drops oversized direct dispatches and multi-record/counted indirect dispatches, and refuses primitive system values. The next priorities are reducing commit growth/copy-back cost and resolving the missing/refused rendering passes, with the same guards retained. A controlled Series S-profile comparison on this same executable is the proposed next memory-footprint test; it has not been run. Code needs separate validation on the exact PR base before a code update; this comment does not change the PR's code or draft status. Investigation and reporting were performed with Claude Code and Codex assistance. No game assets or raw captures are attached. |
|
@L1DRE thanks for testing this and posting the debug-layer details. I checked your latest report with Claude. The failing test: we have a local change on top of The format-67 SRV removal is still unresolved. There is already a family/castable-list check in Could you run New progress since my previous update: we isolated more of the missing passes on the separate local fork candidate
Claude is now working on the Series X translation changes and synthetic execution checks. The global The last completed Series X game result is still the one above: 582.28 s including loading, partial/incorrect scene rendering, around 1.2–1.6 FPS in the final logged intervals, and 23.29 GiB peak process commit. It stopped at our system commit guard. We have no newer game result or 30 FPS claim. The public head remains Investigation, implementation and reporting are AI-assisted with Claude Code and Codex. No game assets, extracted shaders or raw game logs are attached. |
This brings our experimental compute + vertex fallback onto
940d32f, so it can work with main's root UAVs, title-memory views and write marks. I'm testing on a GTX 1070 Ti (8 GB, no mesh shaders), i7-9700K and 16 GB RAM.Related to #3 and the discussion on #961. This is our separate GTX branch, including additional guest-wave and validation work. I'm opening it as a draft because correct world rendering and playable FPS are still unverified.
What changed
DXGI_ERROR_INVALID_CALL). Refused views get a null view, so writes through them are dropped. Typed buffer unordered views get the same check.The commits keep the fallback port, later shader fixes, documentation, a CI test fix and the device-removal fix separate.
What we actually verified
unordered_views_in_a_format_the_host_cannot_store_are_refusedpasses on the GTX 1070 Ti and fails with the previousfits(). It skips on hosts that store B5G5R5A1_UNORM. A separate local GTX test reproduced the removal itself: a plain texture with unordered access is refused, the castable one is made, an R16_UINT view of it works, and a view in its own format removes the device with0x887A0001. Thevictory-gpulibrary suite on the GTX gives 158 passed, 0 failed, 4 ignored.940d32f:a_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardware. Their assertions remain unchanged.-D warnings, including on9b77060;cargo test --workspace --no-runalso passes on that exact commit. That last command compiles tests; it does not execute them. The 158/0/4 GPU-library result above is from the earlier tested candidate with the same fix and local diagnostic, not a fresh GPU run on the committed tree. Asset policy passes for all 193 files (and for the staged file of9b77060), andgit diff --checkpasses. The upstream tree has unrelated formatting differences.Those census counts are validator results, not proof that every shader runs through the GTX fallback. No title pipelines are created by that scan.
Still open
Game trials on this GTX 1070 Ti (16 GB RAM, driver 582.78), with the four variables in the build notes, DRED on, no shader skips and frame capture off:
e35c044: the device was removed withDXGI_ERROR_INVALID_CALLafter 18-20 s (last logged presentation counter: 128), with empty DRED breadcrumbs. A local diagnostic that checks the device after each host view and texture call (not part of this PR) traced it to the B5G5R5A1_UNORM unordered view fixed in9b77060.9b77060: the game ran 163 s and reached logged presentation counter 2048 by 85 s, with no invalid-call removal. It ended when a command list failed to close withE_OUTOFMEMORY, at about 156 s. That followed two 15.7 s submissions whose pipeline sets include00167d58cc5a78d7; these are whole-submission timings, not an isolated timing or proof of a fault in that pass. Process private commit peaked at 22.4 GiB. Sampled system commit reserve stayed above 2.88 GiB, so our 2 GiB guard did not stop the run. The failing allocation and whether its limit was system memory, GPU memory, or another resource are not identified.E_INVALIDARG, including the BVH builders28918b7150a7aad5andcaa78b8ca62bc3d6. The cause has not been found yet.For comparison, L1DRE's tests use the same GTX 1070 Ti 8 GB, but 32 GB RAM and driver 582.53 versus our 16 GB and 582.78. Their additional format/alias-copy fixes, #189 merge and pipeline skips are not in our tested configuration. They report HUD/minimap with #189 and a separate longer run with an additional skip; their 3D world remains black. Those are their observations, not locally reproduced results or a controlled performance comparison. We have requested their exact branch and settings.
No frames were captured in our run, so we have no rendering or FPS improvement to claim. D3D12 debug-layer validation is unavailable on this PC.
Wave64 support is limited to eligible schedules, some programs are still refused, and oversized descriptor heaps still need remapping. This is a reviewable experimental starting point, not a playable-game release.
The
9b77060trial executable (SHA-256b822c643424898b4cb3c74dd52ae0996228aeddd4b0201a07898723148028df0) was built from this branch plus the local diagnostic above, which ran enabled in that trial. No game files, extracted shaders, binaries or raw game logs are included.AI-assisted implementation, review and validation with Codex and Claude.