runtime: resolve committed slot 86 root SRVs #3720

Manually merged
github merged 1 commit from github-bot/gh-3718 into main 2026-12-01 11:23:09 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-12-01 10:49 UTC · original
lambirou:codex/3639-committed-root-srv → main · +82 −1 · 5 files · 1 commits · merged 2026-12-01 11:20 UTC

Problem

A slot 86 mesh root SRV can name a committed buffer at its title address. The material binder only searched the list upload ring and placed-buffer ranges, so it refused with root SRV has no mapped buffer even though a live committed resource held the range.

Change

  • Add committed_root_srv(): resolve the title address through the live resource index (existing_memory_buffer), accept only a buffer that still holds the requested span, require a 256-byte-aligned offset, and keep the view inside that resource.
  • Use it from the slot 86 material root-SRV path in native_mesh86.inl.
  • Add a fixture export and a source-built probe test covering a committed buffer (resource identity and offset 0), a misaligned address, an out-of-range address and readable untracked memory.

Tests

  • startup_indirect_draw_indexed.exe warp mesh86-committed-root-probe — pass (WARP).
  • startup_indirect_mesh_cache_check.py ... --heap — pass.
  • startup_indirect_mesh_cache_check.py ... loose-root — pass.
  • Build: cmake --build --preset release --target d3d12_xs_shim startup_indirect_draw_indexed — pass.

Limits

The probe proves the resolver and range refusals. A native Mesh86 scene draw through presentation is not claimed here; it depends on the remaining slot 86 bindings tracked in #3642/#3641.

Refs #3641, #3640, #3547

**@⁠lambirou** on GitHub · 2026-12-01 10:49 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3718) `lambirou:codex/3639-committed-root-srv` → `main` · +82 −1 · 5 files · 1 commits · merged 2026-12-01 11:20 UTC ## Problem A slot 86 mesh root SRV can name a committed buffer at its title address. The material binder only searched the list upload ring and placed-buffer ranges, so it refused with `root SRV has no mapped buffer` even though a live committed resource held the range. ## Change - Add `committed_root_srv()`: resolve the title address through the live resource index (`existing_memory_buffer`), accept only a buffer that still holds the requested span, require a 256-byte-aligned offset, and keep the view inside that resource. - Use it from the slot 86 material root-SRV path in `native_mesh86.inl`. - Add a fixture export and a source-built probe test covering a committed buffer (resource identity and offset 0), a misaligned address, an out-of-range address and readable untracked memory. ## Tests - `startup_indirect_draw_indexed.exe warp mesh86-committed-root-probe` — pass (WARP). - `startup_indirect_mesh_cache_check.py ... --heap` — pass. - `startup_indirect_mesh_cache_check.py ... loose-root` — pass. - Build: `cmake --build --preset release --target d3d12_xs_shim startup_indirect_draw_indexed` — pass. ## Limits The probe proves the resolver and range refusals. A native Mesh86 scene draw through presentation is not claimed here; it depends on the remaining slot 86 bindings tracked in #3642/#3641. Refs #3641, #3640, #3547
The slot 86 material binder only looked for a root SRV in the list upload ring or a placed buffer, so a committed buffer at the bound title address refused with "root SRV has no mapped buffer". Resolve the address through the live resource index, accept only a buffer that still holds the requested span, require a 256-byte-aligned offset, and keep the view inside that resource. Add a fixture export and a source-built probe test covering a committed buffer, a misaligned address, an out-of-range address and untracked readable memory.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:53:35 +00:00
github manually merged commit 8ab9043f75 into main 2026-12-01 11:23:09 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-12-01 11:20 UTC · original · approved these changes

Reviewed the live committed-buffer lookup, raw-view range and alignment, and rejected inputs. startup_mesh86_committed_root_probe passed locally on WARP and RTX 4060 Laptop, driver 616.56, Windows build 26300.

**@⁠R0Y00** on GitHub · 2026-12-01 11:20 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3718#pullrequestreview-6130195686) · **approved these changes** Reviewed the live committed-buffer lookup, raw-view range and alignment, and rejected inputs. startup_mesh86_committed_root_probe passed locally on WARP and RTX 4060 Laptop, driver 616.56, Windows build 26300.
This discussion has been locked. Commenting is limited to contributors.
No description provided.