Shaders/GPU: port experimental GTX compute and vertex fallback to current main #2203
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2203"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ElSeba0811 on GitHub · 2026-11-25 07:49 UTC · original
ElSeba0811:codex/gtx-upstream-update→main· +4945 −111 · 33 files · 5 commits · draftThis 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.
@sinan-cmyk on GitHub · 2026-11-25 10:58 UTC · original
Your census reproduces, and most of the gain overlaps open PRs
I merged head
e35c044ontomain940d32fand ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. Compared program by program withmain(25,889 programs): +1,637 validated, 0 lost (23,918 → 25,555). That matches your 867 + 735 + 35.Overlap with other PRs, measured the same way on
940d32f:mainSo 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).
@L1DRE on GitHub · 2026-11-25 12:02 UTC · original
Tried
e35c044on another GTX 1070 Ti: 8 GB, driver 582.53, i5-12400F, 32 GB RAM, Windows 11 23H2 (22631), title on an HDD. I used the diag build and your four variables (VICTORY_MESH_COMPUTE,VICTORY_MESH_WAVE64_DAG,VICTORY_MESH_INDIRECT,VICTORY_SNAPSHOT_POOL_MIB=128), plusVICTORY_TEXTURE_MIP_DROP=2. Win11 didn't need the Agility opt-in. The D3D12 debug layer and DRED both work on this PC, so here is what they named.1. The 2560x1440 BGRA render target is refused (
E_INVALIDARG, format 86, flags 5). It's the same case as #904. With85 | 86 | 115 => 28and67 => 10inpc_format, it's created.2.
alias_copyoverruns its buffer when the two formats have different texel sizes. The debug layer stops atCopyTextureRegion: the placed footprint needs 8192 bytes (R16G16B16A16_FLOAT, 32x32, RowPitch 256), but the buffer has 8064. The pair is R32 (a=42) aliased to RGBA16F (b=10). Both have RowPitch 256 and 32 rows, so thetake_whilecheck passes. The row sizes differ, though (128 vs 256 bytes), and the buffer is sized froma's total. The device was removed ("a host command list did not close", then0x887A0001). The fix compares the row sizes fromGetCopyableFootprintsas well, and sizes the buffer to the larger total:This code is upstream (
texture.rs), not from this PR. #1 just made the mismatch reachable, because 9E5 (4 bytes) became RGBA16F (8 bytes).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
DEVICE_HUNGafter about 30 s, with frames taking 16 s on the GPU. This branch translates all fiveXboxBvhBuilderprograms, including28918b71andcaa78b8c, the two that moe-miau found hanging on #189. With those two skipped, DRED stops in the ray-traced pass:That is presumably walking a BVH that was never built. With
VICTORY_SKIP_PIPELINES=28918b7150a7aad5,caa78b8ca62bc3d6,f607780aa8e502d0, there is no device removal.Result with 1, 2 and the three skips: 22+ minutes in the world, then I closed it.
ffe310e)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:
ExecuteIndirectandDrawInstanced: a resource inNON_PIXEL_SHADER_RESOURCE|PIXEL_SHADER_RESOURCEis "invalid for use as a depth-read" (expectedDEPTH_READ). This came up 30 times.DrawIndexedInstanced: a vertex buffer is still inUNORDERED_ACCESS. This came up once.UNORDERED_ACCESS, but the layer assumedVERTEX_AND_CONSTANT_BUFFERat first use.CreateComputeShader"wants wave lane count of 64" refusals. That's expected without #189.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
e35c044. I can push them to a branch if that's easier.This comment and the investigation were done with AI assistance (Claude Code), on my own machine.
@L1DRE on GitHub · 2026-11-25 14:26 UTC · original
Follow-up from the same GTX 1070 Ti. I merged #189 (
92778cd) into this branch together with my two fixes from the previous comment, to see what happens to the roughly 160 programs that get refused here with "wants wave lane count of 64".Merge. There were conflicts in
lower.rs,mod.rsandhost.rs, and in the tests, all aroundParts. I kept yourmesh_computeandwave64_dagfields next to #189'soptions(view_marksmoved intoOptions). Inrun(), thewave64_dagearly return comes before #189's LDS overflow check. Inv_readfirstlane_b32, the order is DAG first, then #189's emulated path, then yournative_full_elections.pipeline/host.rsneeded..Default::default()on the twoOptions { view_marks: true }initializers. With that, the shader library tests give 310 passed, 2 failed and 11 ignored. The two failures are the same ones you list on untouched940d32f.Runs. All use your four variables plus
VICTORY_SKIP_PIPELINES=28918b7150a7aad5,caa78b8ca62bc3d6,f607780aa8e502d0(the BVH builder and ray-traced pass from before; moe-miau sees the same two builders hang on #189 in bothwave32andemulate) andVICTORY_D3D12_DRED=1. One run each:Emulatewave32wave32,00167d58skippedDEVICE_HUNGDEVICE_HUNGThe 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
Emulaterun and in the firstwave32run:Without #189,
00167d58was already in the 15-16 s submissions but stayed under TDR (TdrDelay=10here). With #189 it crosses it. Skipping it makes thewave32run stable: 1 h 50 min from launch with no device removal, then I closed it. Frames still take about 5-10 s on the GPU, so it isn't the only heavy pass.What
Emulaterefuses thatwave32doesn't (unique hashes,wave32run):In
Emulate, the extra 78 are mostlyv_readfirstlaneand 64-lane ballots in divergent control flow. That matches walterwallaceson's and moe-miau's RTX 3070 and 4070 SUPER reports on #189:Emulaterefuses programs thatwave32runs. aef200's RTX 4060 Ti table on #189 shows the same split for creation:nativegives 116 refusals, whilewave32andemulategive 0.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.
@ElSeba0811 on GitHub · 2026-11-25 17:10 UTC · original · edited 2026-11-25 17:12 UTC
@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
9b77060to this branch: a fix for the invalid-call device removal that ended our runs ofe35c044.What removed the device here. Our guarded runs of
e35c044ended after 18-20 s (last logged presentation counter: 128) withDXGI_ERROR_INVALID_CALL(0x887A0001). DRED breadcrumbs were empty, so they did not identify the failing operation. The debug layer isn't available on this PC, so I used a local diagnostic (not pushed) that checksGetDeviceRemovedReasonafter each host view and texture call. It named a titlecreate_uav: a 2D unordered view in format 86, B5G5R5A1_UNORM. On this card:TYPED_UNORDERED_ACCESS_VIEWsupport.ALLOW_UNORDERED_ACCESSis refused (E_INVALIDARG). That is whatmaindoes: no host texture, so no view.CreateCommittedResource3), the same texture is made.0x887A0001.fits()checked typed-store support only for castable views of another format family, so the same-format view went through.Fix (
descriptor/host.rs):fits()now checkstyped_storeon the format the host view actually takes, also when there is no description. That is the view's format if the texture is typeless or castable to it, else the texture's own. Typed buffer unordered views get the same check. Refused views get a null view, so writes through them are dropped. This prevents the invalid view; it does not emulate the missing writes or prove correct rendering. The new testunordered_views_in_a_format_the_host_cannot_store_are_refusedpasses on the GTX and fails with the previousfits(). It skips on hosts that can store B5G5R5A1.This is the same format as your #1, from a different direction. Your
85 | 86 | 115 => 28mapping would avoid this view too, since R8G8B8A8_UNORM can be stored, but it changes the texel size, which is what exposed thealias_copyoverrun in your #2. The check here doesn't depend on the mapping and covers any unordered view in a format the host can't store, so the two could go together.Run with the fix (your four variables, DRED, no skips, no mip drop, no frame capture):
e35c0449b77060INVALID_CALLremovalE_OUTOFMEMORYat about 156 sThe end came after two 15.7 s submissions whose pipeline sets include
00167d58cc5a78d7, which also appears in your DRED report. These are batch timings, so we haven't isolated that pass as the cause here. Physical memory load was 88-99%, but we didn't measure paging throughput. Sampled system commit reserve stayed above 2.88 GiB, so our 2 GiB guard didn't stop the run. We haven't identified the failed allocation or whether its limit was system memory, GPU memory, or something else.We haven't reproduced your format remapping,
alias_copyfix, #189 merge, pipeline skips orVICTORY_TEXTURE_MIP_DROPsetting. The 45 refusals below are host pipeline-creation errors; we haven't established that they're equivalent to your wave-lane-count refusals.One difference from your card: here the BVH builders
28918b7150a7aad5andcaa78b8ca62bc3d6didn't run. They were among 45 compute pipelines the host refused withE_INVALIDARG, starting about 70 s in. I haven't found why yet.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
cargo test --workspace --no-runpass on the exact9b77060tree. That last check compiles tests; it isn't another GPU test run.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
b822c643424898b4cb3c74dd52ae0996228aeddd4b0201a07898723148028df0: the fix now in9b77060plus a local diagnostic probe, enabled for the run and not pushed. This is the upstream-based GTX build; separate ZSlayer runs aren't evidence for this PR. Counts, hashes and times only; no game data attached.AI-assisted investigation and validation with Claude and Codex, on my own machine.
@Marvisak on GitHub · 2026-11-25 18:19 UTC · original
Automated triage for the maintainers.
Needs rebase. This branch conflicts with
mainincrates/victory-gpu/src/descriptor/host.rsand incrates/victory-shader/src/emit/(lower.rs,memory_tests.rs,mod.rs,shader.rs). It will be reviewed once it is rebased and out of draft.Generated by Claude Code
@L1DRE on GitHub · 2026-11-25 18:40 UTC · original
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
87799d9(fxceless3973179plus a cache warm-up,VICTORY_AMBIENTand the pool-assert fix). On top:8c32235ande35c044from this PR, and thepc_formatstand-ins from my first comment. The fork has noemit::Options/view_marks, andemit_programreturns(HostShader, Option<u32>), soemit_modetakes(mesh_compute, wave64_dag)andmesh_compute::translate_withdrops itsoptionsargument.pipeline.rsneeded awith_resourceshelper and the fork's extraShaderfields (walks,resolves_light,stores). I left outef0fe5c(it builds on upstream's view-address table, which the fork doesn't have). I also left out myalias_copyfix, because the fork already refuses alias copies whose totals differ.cargo checkis clean. I didn't run the test suite on this port.Warm-up (
victory warm): 25,647 shaders translated, 59 refused; 2,647 compute pipelines, 27 refused; 609 s.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 (
0x887A0006). DRED named a different indirect compute each time:f22a76fcb967ee59,36f04a4ed0ad1d9b,6d7fe7745ab9c6d8,0873f80dd84a3c5c,3592426e3e9142d8,b58eb3ca6ee46427. They read their arguments from two blocks (0xd7227a3…and0xd9358f…). Things that did not help:TdrDelay=60(still6d7fe774, so it is a real hang, not just a slow frame).What fixed it is the fork's own
VICTORY_BVH_HOLD=1, which holds every dispatch that walks the unbuilt ray-tracing structures (the hang #2311 measured on NVIDIA). With it, plusVICTORY_SKIP_PIPELINES=00167d58cc5a78d7(the wind-field copy from #898), there was no device removal in any run:VICTORY_BVH_HOLD=1Picture. 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.
VICTORY_AMBIENT=2(default 0.6) didn't change that. As far as I can tell this is the same "shadow is black, bright scenes overexpose" that the fxceless-based forks list as known while ray-traced lighting doesn't run.Notes:
VICTORY_MESH_WAVE64_DAG=1). Their draws are dropped.BUDGETto1 << 25made the lower half of the G-buffer and the lighting run empty. The fork's defaults are needed.VICTORY_SHADER_LOOP_LIMIT=32stalls the world load on the loading screen.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.
@L1DRE on GitHub · 2026-11-25 18:43 UTC · original
@ElSeba0811 thanks, and nice find on the format-86 UAV. It's good that the
fits()check covers it without depending on the size-changing remap. Pushed to my fork, https://github.com/L1DRE/VIctory:gtx1070/pr2203-fixesise35c044plus the two fixes:8fe7667(pc_formatstand-ins85 | 86 | 115 => 28,67 => 10) andd8f5a07(alias_copycompares row sizes and sizes the buffer to the larger total).gtx1070/pr2203-189is the above, merged with #189 at92778cd(620aab6, conflicts resolved as described in my second comment), plus6fa51a4: the mesh-computeOptionskeep the default wave64 mode.gtx1070/mangrove-2203is the port from my third comment: Joaco9020/mangrove87799d9plus8c32235,e35c044and the format stand-ins.None of them has
9b77060yet.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 (
cargo build --locked --profile diag -p victory --features diagnostics).TdrDelaywas 10 for every run except the last mangrove ones, where it was 60.Shared by every run:
VICTORY_MESH_COMPUTE=1 VICTORY_MESH_WAVE64_DAG=1 VICTORY_MESH_INDIRECT=1 VICTORY_SNAPSHOT_POOL_MIB=128 VICTORY_TEXTURE_MIP_DROP=2. Every run whose DRED result I quoted hadVICTORY_D3D12_DRED=1.pr2203-fixesDEVICE_HUNGabout 30 s into the worldpr2203-fixesVICTORY_SKIP_PIPELINES=28918b7150a7aad5,caa78b8ca62bc3d6,f607780aa8e502d0Emulatepr2203-189VICTORY_WAVE64_EMULATE=emulate+ same 3 skipsDEVICE_HUNGat 8 min on00167d58cc5a78d7wave32pr2203-189VICTORY_WAVE64_EMULATE=wave32+ same 3 skipsDEVICE_HUNGat 5.5 min on00167d58wave32+ skippr2203-189VICTORY_WAVE64_EMULATE=wave32, skips +00167d58cc5a78d7mangrove-2203The third-comment runs used mangrove's own
pc\settings.batvalues,VICTORY_LOG=info,victory_gpu::descriptor::host=error VICTORY_TEXTURE_GUARD=0 VICTORY_SHADER_OPT=0 VICTORY_TEXTURE_ROOM_PERCENT=94 VICTORY_LATE_WAIT=2 VICTORY_PIPELINE_WAIT_MS=24 VICTORY_POOL_NO_ASSERT=1, plusVICTORY_BVH_HOLD=1 VICTORY_SKIP_PIPELINES=00167d58cc5a78d7. The cache was warmed first withvictory warm <shaders.rpf> <game exe>, using the same variables.VICTORY_AMBIENTwas the default 0.6, then 2. Target dumps usedVICTORY_CAPTURE+VICTORY_DUMP_TARGETS=1+VICTORY_CAPTURE_WORLD=20,60.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
E_OUTOFMEMORYat about 156 s may be commit rather than VRAM.On the BVH builders: on
pr2203-fixeshere, all fiveXboxBvhBuilderprograms were created. That's how28918b71andcaa78b8ccould hang. Onpr2203-189, #189 refuses them instead ("LDS accesses without a uniform LDS fence in split wave64").This comment was written with AI assistance (Claude Code), on my own machine.
@L1DRE on GitHub · 2026-11-25 19:12 UTC · original
@ElSeba0811 I merged
9b77060intogtx1070/pr2203-189locally and tested it on this GTX 1070 Ti (driver 582.53). The settings are thewave32row from my previous comment, plusVICTORY_D3D12_DEBUG=1where noted.9b77060+ mypc_formatstand-ins9b77060, stand-ins revertedINVALID_CALL(0x887A0001) about 16 s into the world, as on youre35c044runsVICTORY_D3D12_DEBUG=1On 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
CreateCommittedResource.) Sofits()never sees this texture on 582.53. On your 582.78 the castable path makes it, which is presumably why you reached the view.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.
9b77060guards unordered views only. A matching check for shader views (refuse or null a view whose format is neither in the texture's family nor in its castable list) would cover this case. My67 => 10stand-in happens to avoid it, because it changes the view format to RGBA16F.The new test fails here before it reaches its assertions:
The test's
CreateCommittedResource3for B5G5R5A1 withALLOW_UNORDERED_ACCESSis refused on this driver. The test could skip when that creation fails, as it already does whenID3D12Device10is missing.On this machine the stand-ins (
85 | 86 | 115 => 28,67 => 10) are still needed. With them,9b77060is harmless. I can push the merge (pr2203-189+9b77060) if that helps.This comment and the testing were done with AI assistance (Claude Code), on my own machine.
@ElSeba0811 on GitHub · 2026-11-25 23:34 UTC · original
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 settings
These results are for a separate local fork candidate, not the public
9b77060head of this PR:9c184b35.03f815d5058c3741671ab9b8a3f929d782a5b843.a4865267d6d903656b79e60a27031906643a4e9c, including the BC7 anchor-pixel correction.fb6c03fe1d5e7cd5328d6d8deefbecf90ce9816f005f9cd9357b0dca2fc4a4a6(rechecked after the run).VICTORY_BVH_HOLD=1,VICTORY_SNAPSHOT_POOL_MIB=128,VICTORY_D3D12_DRED=1, info logging. Four scheduled Enter inputs at 45/60/75/90 seconds.Completed hardware run
system_commit_guard; runner termination code0xe0000001The 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 run
The 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 work
Correct 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.
@ElSeba0811 on GitHub · 2026-11-26 01:19 UTC · original
@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
9b77060that skipsunordered_views_in_a_format_the_host_cannot_store_are_refusedwhen the required castable B5G5R5A1 texture cannot be created. On our 582.78 driver it still reaches the assertions. Claude recorded 158 passed, 0 failed, 2 ignored for the GPU library, plus a forced-E_INVALIDARGcontrol that takes the skip. This change is still local; it is not in this PR yet, and it does not fix the game's missing texture.The format-67 SRV removal is still unresolved. There is already a family/castable-list check in
fits(), before the unordered-view change in9b77060. It also runs for shader resource views. The plain resource-creation fallback clears the recorded castable list. That points us toward a mismatch between the recorded castability and the resource actually being viewed, rather than simply adding the same check again. We have not reproduced or proved the cause of your removal on 582.53.Could you run
draw::tests::a_texture_written_in_one_format_reads_in_another_through_a_placed_viewon your driver? It exercises the same R32_UINT → R9G9B9E5 pair. If it passes, the useful next comparison is the failing texture's dimensions, mip/array counts, flags and creation path. Your OS/driver details are already noted; no game assets are needed.New progress since my previous update: we isolated more of the missing passes on the separate local fork candidate
a486526described above. These results are not from the public PR head:369cbe906ea72764and2cc4c197ee29e2912d0cace65bc05bb2and98bd9f9ae5f9c7e3BarycentricsSupported=0. Both exact graphics pairs create on WARP and fail on the GTX.f133e35efed2a48astill fails translation at a divergent lane-mask exchange.Claude is now working on the Series X translation changes and synthetic execution checks. The global
VICTORY_WAVE_WIDEswitch remains off for game runs because of known hangs; the 2/2 result is a narrow diagnostic, not a recommended global setting.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
9b77060; the PR is still draft and needs a rebase. The local fork findings and test change need to be carried across and validated on the actual PR branch before they can be called part of this PR.Investigation, implementation and reporting are AI-assisted with Claude Code and Codex. No game assets, extracted shaders or raw game logs are attached.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.