Skip to content

startup: record bound slot 57 targets with the creation capture - #3761

Open
R0D4X wants to merge 3 commits into
R0Y00:mainfrom
R0D4X:startup/mesh57-bound-targets
Open

R0D4X wants to merge 3 commits into
R0Y00:mainfrom
R0D4X:startup/mesh57-bound-targets

Conversation

@R0D4X

@R0D4X R0D4X commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Refs #3416
Refs #3502
Refs #3724

Summary

Unstacks Leyukaka's slot 57 bound-target capture commit (4991e866 from #3502, authorship preserved in f893187d) directly onto current main (959306d4) without the #3493 dependency, resolves the d3d12_draw.inl cache-index and docs/startup-runtime.md merge conflicts, and addresses all items from lukaslw-lab's review of #3502 in 09df3efa:

  • Cache-index preservation (f893187d): publish_request_file accepts an optional bool* already_existed out-parameter so publish_shader_request keeps note_cache_write and cache_index().count_contradiction() intact while sharing the atomic write helper with write_mesh57_targets.
  • Review SHOULD (depth_unresolved, 09df3efa): Added Pass::depth_unresolved, set in list_targets when a non-null depth handle is unreadable or maps to no desktop descriptor (!resolved), and checked in capture_slot57_targets so runtime depth misses never record a bogus dsv 0 writable 0 tuple.
  • Review NITs (09df3efa): Expanded mesh57_target_capture in tests/startup_indirect_draw_indexed.cpp to cover:
    • unresolved depth handle (unresolved_dsv{0}) refusal,
    • sample-count mismatch refusal (4x MSAA RTV with 1x DSV),
    • derived slot 55 pipeline "no tuple for base variant" rule,
    • two-RTV bind order ([rtv1, rtv0] -> targets 2 29 28 dsv 0 writable 0 samples 1 0).
  • CI filter (09df3efa): Added startup_indirect_mesh57_targets(_off)?_warp to the pr test preset in CMakePresets.json.

Verification

Environment: Windows 11 x64 (10.0.26300.9974), MSVC 19.44.35230, Windows SDK / DXC 10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver 32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled.

Commit under test: 09df3efa.

ctest --test-dir out/build/dev --no-tests=error -j 1 -V -R "^(startup_indirect_mesh57_targets(_off)?|startup_indirect_mesh_request|native_fixed_mesh57(_mrt)?)_(warp|hardware)$"
ctest --test-dir out/build/release --no-tests=error -j 1 -V -R "^(startup_indirect_mesh57_targets(_off)?|startup_indirect_mesh_request|native_fixed_mesh57(_mrt)?)_(warp|hardware)$"
python -B tests/docs_links_check.py
python -B tests/mesh57_profile_draft_check.py
  • dev: 10/10 passed (0 skipped), WARP + RTX 5080.
  • release: 10/10 passed (0 skipped), WARP + RTX 5080.
  • tests/docs_links_check.py: passed (208 Markdown files, 803 links).
  • tests/mesh57_profile_draft_check.py: passed.

New mutation checks (all 4 killed in dev against startup_indirect_mesh57_targets_warp)

Mutation Observed failure
Remove pass.depth_unresolved check in capture_slot57_targets Sidecar recorded targets 1 30 dsv 0 writable 0 samples 1 0
Remove sample-count equality check in collect_samples Sidecar recorded targets 1 28 dsv 55 writable 1 samples 4 0
Remove direct check in request_slot57_mesh Derived slot-55 bind recorded targets 1 30 dsv 55 writable 0 samples 1 0
Break multi-RTV copy (std::fill_n with target_formats[0]) Sidecar recorded targets 2 29 29 instead of targets 2 29 28

No game files, dumps, or private paths included.

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