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

Open
opened 2026-12-01 17:00:37 +00:00 by R0Y00 · 1 comment
R0Y00 commented 2026-12-01 17:00:37 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-01T17:00:37Z.


Merged coverage and remaining blocker

#3764 fixes staged primitive index decoding. #3807 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. #3776 remains under review for copy ordering and stale-page handling. Keep the matched-run rasterization and VRAM acceptance checks below.

Refs #870, #3639, #3640, #3641 and #3703.

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 #3641.
  • 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.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6725907127 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3763). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-01T17:00:37Z. --- ## Merged coverage and remaining blocker #3764 fixes staged primitive index decoding. #3807 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. #3776 remains under review for copy ordering and stale-page handling. Keep the matched-run rasterization and VRAM acceptance checks below. Refs #870, #3639, #3640, #3641 and #3703. ## 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 #3641. - 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.
Leyukaka commented 2026-12-01 17:41:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-01T17:41:24Z.


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 #3725 (715b84f0) applied locally, since it targets that refusal.

@Not-Saii, this sits next to your #3640 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 #3640 before any fix is chosen. If you'd prefer a different split, tell me. I'm not touching #3764 (edge flags) or #3725 (placed material SRV refresh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7319695881 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3763#issuecomment-7319695881). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-12-01T17:41:24Z. --- 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 #3725 (`715b84f0`) applied locally, since it targets that refusal. @Not-Saii, this sits next to your #3640 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 #3640 before any fix is chosen. If you'd prefer a different split, tell me. I'm not touching #3764 (edge flags) or #3725 (placed material SRV refresh).
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#3763
No description provided.