resolve the 128-byte mesh root SRV for slot 86 #3639

Open
opened 2026-11-30 19:13:46 +00:00 by R0Y00 · 4 comments
R0Y00 commented 2026-11-30 19:13:46 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T19:13:46Z.


Main implementation

#3718 merged at 8ab9043f. The committed-buffer root SRV resolver now checks the live resource, alignment and requested span. Its WARP probe exercised a valid binding and refused misaligned, out-of-range and readable-but-untracked addresses. Keep the issue open for the matching scene route and the warm-run checks below. #3763 tracks the geometry-stream mismatch.

Status update · 2 December 2026

The sampled direct dispatches passed this binding stage in a local C++ working tree. Keep this issue as the implementation record until branch coverage and integration are verified. The active scene blocker is now tracked at #3763. See #870 for the measured checkpoint.

Refs #870, #3545, #1914 and #3638. Target main.

In a local C++ runtime trace, a slot 86 Mesh PSO was created and selected. Its direct DispatchMesh reached material binding. The first refusal was mesh t1, root parameter 3, a root SRV with a 128-byte minimum read. The current binder found no mapped backing for the bound address. The earlier committed-buffer refusal no longer blocked this pipeline.

  • Trace the graphics root-SRV setter to the memory owner and identify the authoritative bytes at dispatch. Map the proved span to a valid desktop read-only view and preserve its lifetime through the queue fence.
  • Add a source-built test with a known value and a control for an unbacked or out-of-range address. Verify the view cannot read an unrelated allocation.
  • On the matching local profile, report the binding result and either the first later refusal or a correlated record/close/submit chain.

Performance and code quality

  • Keep the native C++ bind path efficient on repeated draws. Reuse the runtime's range lookup, resource lifetime and fence tracking. Reuse the resolved view while its backing and range remain valid, and measure CPU bind time and upload bytes on a matched warm run.
  • Keep range validation and view lifetime explicit. Cover reuse and invalidation after a backing change, and explain how the binder handles a stale view or an incomplete range.

Keep public evidence title-neutral and use source-built fixtures.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6704203955 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3639). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T19:13:46Z. --- ## Main implementation #3718 merged at `8ab9043f`. The committed-buffer root SRV resolver now checks the live resource, alignment and requested span. Its WARP probe exercised a valid binding and refused misaligned, out-of-range and readable-but-untracked addresses. Keep the issue open for the matching scene route and the warm-run checks below. #3763 tracks the geometry-stream mismatch. ## Status update · 2 December 2026 The sampled direct dispatches passed this binding stage in a local C++ working tree. Keep this issue as the implementation record until branch coverage and integration are verified. The active scene blocker is now tracked at #3763. See #870 for the measured checkpoint. Refs #870, #3545, #1914 and #3638. Target `main`. In a local C++ runtime trace, a slot 86 Mesh PSO was created and selected. Its direct `DispatchMesh` reached material binding. The first refusal was mesh `t1`, root parameter 3, a root SRV with a 128-byte minimum read. The current binder found no mapped backing for the bound address. The earlier committed-buffer refusal no longer blocked this pipeline. - [ ] Trace the graphics root-SRV setter to the memory owner and identify the authoritative bytes at dispatch. Map the proved span to a valid desktop read-only view and preserve its lifetime through the queue fence. - [ ] Add a source-built test with a known value and a control for an unbacked or out-of-range address. Verify the view cannot read an unrelated allocation. - [ ] On the matching local profile, report the binding result and either the first later refusal or a correlated record/close/submit chain. ## Performance and code quality - [ ] Keep the native C++ bind path efficient on repeated draws. Reuse the runtime's range lookup, resource lifetime and fence tracking. Reuse the resolved view while its backing and range remain valid, and measure CPU bind time and upload bytes on a matched warm run. - [ ] Keep range validation and view lifetime explicit. Cover reuse and invalidation after a backing change, and explain how the binder handles a stale view or an incomplete range. Keep public evidence title-neutral and use source-built fixtures.
Leyukaka commented 2026-11-30 21:36:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-30T21:36:58Z.


Taking the first two items. Plan: trace the slot 86 graphics root-SRV setter (mesh t1, root parameter 3, 128-byte minimum read) to its memory owner, map the proved span to a desktop read-only view whose lifetime follows the queue fence, and add a source-built test with a known value, a control for an unbacked or out-of-range address, and a check that the view cannot read an unrelated allocation. This changes the root-SRV bind path in the material binder. The local-profile report and the bind-time measurements follow once the binding holds. Status goes on this issue.

Environment: Windows 11 x64, MSVC 19.44, WARP and one hardware adapter.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7292654431 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3639#issuecomment-7292654431). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-30T21:36:58Z. --- Taking the first two items. Plan: trace the slot 86 graphics root-SRV setter (mesh `t1`, root parameter 3, 128-byte minimum read) to its memory owner, map the proved span to a desktop read-only view whose lifetime follows the queue fence, and add a source-built test with a known value, a control for an unbacked or out-of-range address, and a check that the view cannot read an unrelated allocation. This changes the root-SRV bind path in the material binder. The local-profile report and the bind-time measurements follow once the binding holds. Status goes on this issue. Environment: Windows 11 x64, MSVC 19.44, WARP and one hardware adapter.
Kawiu commented 2026-11-30 22:27:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Kawiu on 2026-11-30T22:27:45Z.


Note from a local run, in case it changes the priority of this item: on our capture the title creates slot 86 (Mesh86) pipelines only when X2W_REFUSE_FIXED_MESH=1 refuses the slot 57 fixed mesh creations.

Without that switch, the same build creates no Mesh86 pipeline. DispatchMesh then comes from slot 57 pipelines (43 calls) and slot 55 pipelines (5 calls), and loading continues:

DirectStorage completed requests With the switch Without the switch
At 240 s 22,867, then stalled 146,690

So the 128-byte t1 read is on the path that the refusal switch forces.

Counts are from three runs on one AMD host at main d5970858. Not verified on another title state.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7293878352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3639#issuecomment-7293878352). Originally posted by [Kawiu](https://github.com/Kawiu) on 2026-11-30T22:27:45Z. --- Note from a local run, in case it changes the priority of this item: on our capture the title creates slot 86 (Mesh86) pipelines only when `X2W_REFUSE_FIXED_MESH=1` refuses the slot 57 fixed mesh creations. Without that switch, the same build creates no Mesh86 pipeline. `DispatchMesh` then comes from slot 57 pipelines (43 calls) and slot 55 pipelines (5 calls), and loading continues: | DirectStorage completed requests | With the switch | Without the switch | |---|---:|---:| | At 240 s | 22,867, then stalled | 146,690 | So the 128-byte `t1` read is on the path that the refusal switch forces. Counts are from three runs on one AMD host at main `d5970858`. Not verified on another title state.
Leyukaka commented 2026-12-01 10:15:08 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T10:15:08Z.


I'm continuing the slot 86 direct mesh root-SRV work here. The source-built fixture passes on WARP and hardware for a known 128-byte read, out-of-range and unbacked refusals, and backing replacement. The current patch improves range validation and refusal diagnostics. Resolving the unmapped address seen in the original trace is still open.

My current local profile creates Mesh86 PSOs but never selects one or reaches slot 129. If you have the reproduction settings for the #3638 direct-dispatch observation, the base revision, relevant switches, and input sequence would help reproduce that bind without sharing any application data.

I'm limiting this work to the root SRV. The large placed-buffer path in #3640 and the GPU-to-CPU census in #3676 are tracked separately.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7307900390 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3639#issuecomment-7307900390). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T10:15:08Z. --- I'm continuing the slot 86 direct mesh root-SRV work here. The source-built fixture passes on WARP and hardware for a known 128-byte read, out-of-range and unbacked refusals, and backing replacement. The current patch improves range validation and refusal diagnostics. Resolving the unmapped address seen in the original trace is still open. My current local profile creates Mesh86 PSOs but never selects one or reaches slot 129. If you have the reproduction settings for the #3638 direct-dispatch observation, the base revision, relevant switches, and input sequence would help reproduce that bind without sharing any application data. I'm limiting this work to the root SRV. The large placed-buffer path in #3640 and the GPU-to-CPU census in #3676 are tracked separately.
Leyukaka commented 2026-12-01 12:53:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T12:53:15Z.


Status after #3718: the committed-buffer resolver is merged. I found that its fallback could also return a placed buffer after the material binder refused it. A local patch keeps those buffers on the original validation path. The grouped checks passed 5/5, including the fallback probe and Mesh86 cache tests on WARP and hardware.

The remaining checks here are a known-value 128-byte read from a genuinely non-placed buffer, and a local run that reaches slot 129 so we can verify the bind and measure its cost. The previous run reached PSO creation only.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7311791911 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3639#issuecomment-7311791911). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T12:53:15Z. --- Status after #3718: the committed-buffer resolver is merged. I found that its fallback could also return a placed buffer after the material binder refused it. A local patch keeps those buffers on the original validation path. The grouped checks passed 5/5, including the fallback probe and Mesh86 cache tests on WARP and hardware. The remaining checks here are a known-value 128-byte read from a genuinely non-placed buffer, and a local run that reaches slot 129 so we can verify the bind and measure its cost. The previous run reached PSO creation only.
Sign in to join this conversation.
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#3639
No description provided.