P0: establish coherent geometry stream backing for native Mesh86 #3765

Open
opened 2026-12-01 17:05:11 +00:00 by github-bot · 1 comment
Owner

@⁠R0Y00 on GitHub · 2026-12-01 17:00 UTC · original

Merged coverage and remaining blocker

#3766 fixes staged primitive index decoding. #3809 enables indexed raw SRVs for Mesh86 table buffers and verifies expected stride, wrong stride and missing backing with source-built fixtures. These fixes do not establish equivalence between the CPU and GPU bytes in the sampled geometry streams. #3778 remains under review for copy ordering and stale-page handling. Keep the matched-run rasterization and VRAM acceptance checks below.

Refs #870, #3641, #3642, #3643 and #3705.

Current evidence

Four native C++ Mesh86 pipelines recorded direct dispatches and the sampled lists reached GPU fences. All 48 sampled dispatches had zero pixel shader invocations. Selected stream SRVs read different bytes on the CPU and the GPU. Some sampled triangles were wholly outside the clip volume and others yielded degenerate indices. The tested committed-buffer refresh passed its fixture. The mismatched scene streams did not exercise that path.

Acceptance

  • Trace one failing geometry SRV from the guest descriptor, byte offset and mapping generation through resource placement and writes to the GPU consumer. Record which version of the data each queue sees.
  • Fix the identified backing or mapping lifetime with source-built CPU-authored and GPU-authored controls. Include remap or reuse, partial updates and cross-queue ordering. Preserve GPU-authored bytes.
  • On a matched local run, demonstrate a nondegenerate in-frustum triangle, nonzero pixel invocations, and the associated color or depth change. Track presentation at #3643.
  • Use the native C++ path and retain existing caches. Measure committed VRAM, bytes copied, and median and p95 frame time on the same adapter. Use bounded work and existing ownership and fence tracking. Keep diagnostics opt-in. Keep public evidence title-neutral and publish only source-built artifacts.
**@⁠R0Y00** on GitHub · 2026-12-01 17:00 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3763) ## Merged coverage and remaining blocker #3766 fixes staged primitive index decoding. #3809 enables indexed raw SRVs for Mesh86 table buffers and verifies expected stride, wrong stride and missing backing with source-built fixtures. These fixes do not establish equivalence between the CPU and GPU bytes in the sampled geometry streams. #3778 remains under review for copy ordering and stale-page handling. Keep the matched-run rasterization and VRAM acceptance checks below. Refs #870, #3641, #3642, #3643 and #3705. ## Current evidence Four native C++ Mesh86 pipelines recorded direct dispatches and the sampled lists reached GPU fences. All 48 sampled dispatches had zero pixel shader invocations. Selected stream SRVs read different bytes on the CPU and the GPU. Some sampled triangles were wholly outside the clip volume and others yielded degenerate indices. The tested committed-buffer refresh passed its fixture. The mismatched scene streams did not exercise that path. ## Acceptance - Trace one failing geometry SRV from the guest descriptor, byte offset and mapping generation through resource placement and writes to the GPU consumer. Record which version of the data each queue sees. - Fix the identified backing or mapping lifetime with source-built CPU-authored and GPU-authored controls. Include remap or reuse, partial updates and cross-queue ordering. Preserve GPU-authored bytes. - On a matched local run, demonstrate a nondegenerate in-frustum triangle, nonzero pixel invocations, and the associated color or depth change. Track presentation at #3643. - Use the native C++ path and retain existing caches. Measure committed VRAM, bytes copied, and median and p95 frame time on the same adapter. Use bounded work and existing ownership and fence tracking. Keep diagnostics opt-in. Keep public evidence title-neutral and publish only source-built artifacts.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 17:05:12 +00:00
Author
Owner

@⁠Leyukaka on GitHub · 2026-12-01 17:41 UTC · original

I'd like to take the first acceptance item: trace one failing geometry SRV from the guest descriptor, byte offset and mapping generation through resource placement and the writes that reach it, to the GPU consumer, and record which version of the data each queue sees. I'll report counts and any mismatch the trace identifies here, without changing the backing. In my current local runs the four Mesh86 pipelines are selected but their material SRV binding is refused because an input is in a placed buffer that does not alias guest memory, so no DispatchMesh is recorded yet; I'll run the trace with #3727 (715b84f0) applied locally, since it targets that refusal.

@⁠Not-Saii, this sits next to your #3642 trace of the large placed buffer. I'll keep to the geometry stream SRVs. If the trace lands on that same buffer, I'll post the evidence here and on #3642 before any fix is chosen. If you'd prefer a different split, tell me. I'm not touching #3766 (edge flags) or #3727 (placed material SRV refresh).

**@⁠Leyukaka** on GitHub · 2026-12-01 17:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3763#issuecomment-7319695881) I'd like to take the first acceptance item: trace one failing geometry SRV from the guest descriptor, byte offset and mapping generation through resource placement and the writes that reach it, to the GPU consumer, and record which version of the data each queue sees. I'll report counts and any mismatch the trace identifies here, without changing the backing. In my current local runs the four Mesh86 pipelines are selected but their material SRV binding is refused because an input is in a placed buffer that does not alias guest memory, so no DispatchMesh is recorded yet; I'll run the trace with #3727 (`715b84f0`) applied locally, since it targets that refusal. @⁠Not-Saii, this sits next to your #3642 trace of the large placed buffer. I'll keep to the geometry stream SRVs. If the trace lands on that same buffer, I'll post the evidence here and on #3642 before any fix is chosen. If you'd prefer a different split, tell me. I'm not touching #3766 (edge flags) or #3727 (placed material SRV refresh).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3765
No description provided.