runtime: resolve committed slot 86 root SRVs #3718

Merged
lambirou merged 1 commit from upstream-pr/3718 into main 2026-12-01 11:20:34 +00:00
lambirou commented 2026-12-01 10:49:40 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T10:49:40Z.


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 #3640/#3641.

Refs #3639, #3638, #3545

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5584144637 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3718). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-01T10:49:40Z. --- ## 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 #3640/#3641. Refs #3639, #3638, #3545
R0Y00 commented 2026-12-01 11:20:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-01T11:20:30Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6130195686 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3718#pullrequestreview-6130195686). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-01T11:20:30Z. **Review:** APPROVED --- 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!3718
No description provided.