Repository navigation
Shaders/GPU: port experimental GTX compute and vertex fallback to current main - #2203
ElSeba0811 wants to merge 4 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. |
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
The three commits keep the fallback port, later shader fixes and documentation separate.
What we actually verified
940d32f:a_heap_buffer_read_by_element_takes_the_views_strideandgathers_at_a_level_match_the_hardware. Their assertions remain unchanged.-D warnings. Asset policy passes for all 193 files, 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
The first game trial of the final binary initialized D3D12, then our external system-memory guard stopped it after 14.8 seconds. No frames were captured, so we have no rendering or FPS improvement to claim from this build. D3D12 debug-layer validation was 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 runtime source matches the locally tested executable with SHA-256
757ac37856f0d563c0c0c226f02f8fc3e24af887d20b47f5340d1a4a888b25f2; the later commit changes documentation only. No game files, extracted shaders, binaries or raw game logs are included.AI-assisted implementation, review and validation with Codex and Claude.