Skip to content

Test #294 against the four-PR world-rendering baseline - #1

Draft
MichaelSmithAI wants to merge 4 commits into
test/world-root-uav-baselinefrom
test/world-root-uav-candidate
Draft

MichaelSmithAI wants to merge 4 commits into
test/world-root-uav-baselinefrom
test/world-root-uav-candidate

Conversation

@MichaelSmithAI

Copy link
Copy Markdown
Owner

This fork-local comparison is for the three-frame cutscene experiment requested in VIctory issue #255. On the four-PR stack the reporter saw nine programs stop at the combined root-UAV/typed-root-view refusal and roughly 390 dropped draws per frame. All eight reported HDR targets were empty.

Build the baseline at ba51729 and the candidate at c8197ea. Both contain Marvisak#302, Marvisak#489, Marvisak#307 and Marvisak#346 at the reported revisions. The candidate adds Marvisak#294 at 0050ce5, resolves the test-emitter initializer conflict, and adds a synthetic regression. Both omit Marvisak#135, which changed depth coverage in the reference run.

Use the same game version, save, cutscene moment, adapter, build settings and capture settings. Warm each build's cache before its measured run. For three matched frames, compare the number of programs and dropped operations with the root-view refusal, the number of full-resolution HDR targets with nonzero content, and depth coverage away from clear. Record whether the world is visible and any new leading refusal. Counts and observations suffice.

The baseline rejects the synthetic spill-table-to-raw-UAV write. On the candidate it emits the same DXIL and uses the same root slot as the direct-input control. The Linux shader suite passed 69/69, and the Windows diagnostics CLI and GPU/shader test targets type-checked. The retail comparison has not been run. The original combined counter includes typed views that Marvisak#294 may still refuse.

The original contributions retain their authors. AI assistance was used for integration, the regression test and verification.

wbkepler and others added 4 commits November 24, 2026 03:03
…ot UAVs

- Refresh the full remaining Shadow buffer extent for Root SRVs and Root UAVs instead of truncating at 1 MiB (keeping Root CBVs at the 64 KiB D3D12 limit).

- Guard shadow::find/loose against low (<0x10000) and uncommitted addresses, and bind permanently-alive 4 MiB zeroed/sink fallback GPU VAs instead of skipping Set*Root*View when a root view is unset, null, or unmapped.

- Support Root UAVs (u<slot>, space1 RWByteAddressBuffer) end-to-end across victory-shader (descriptor handle, global_store_dword*, s_load_dword* on root descriptors, PSV0/dx.resources metadata, SFI0/ShaderFlags UAVsAtEveryStage=1<<16), shader_cache (VSH2), pipeline::host (deduplicating shared (kind, slot) root views across stages), and draw (binding, gpu_writes write-back, and post-draw/dispatch UAV barriers).

- Add unit, dxil.dll validation, WARP, and host GPU tests covering >1 MiB Root SRV dirty-page refresh, null/unmapped fallback VAs, cross-stage root view deduplication, and Root UAV execution/write-back.
Root SRVs and UAVs took the whole rest of their buffer's host copy, so a
root UAV near the start of a very large backing copy kept and compared
that whole range on every submission. A root view has no size and the
translated shader does not report its range yet, so bound them: root
SRVs refresh at most 4 MiB, root UAVs refresh, snapshot and copy back at
most 2 MiB, constant buffers keep the 64 KiB D3D12 maximum. A cut is
logged once per view kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	crates/victory-shader/src/emit/lower.rs
MichaelSmithAI pushed a commit that referenced this pull request Nov 25, 2026
Exercise the descriptor cursor regression on the actual heap capacity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants