startup: translate and publish pending slot 86 mesh requests #3728

Merged
lambirou merged 5 commits from upstream-pr/3728 into main 2026-12-02 20:34:12 +00:00
lambirou commented 2026-12-01 11:55:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-01T11:55:18Z.


Problem

Pending slot 86 mesh requests were never translated: the launcher/translator published graphics and compute requests, but no mesh86 profile, so scene ExecuteIndirect mesh keys were refused graphics/mesh_profile_missing.

Change

  • tools/startup/mesh86_translate.py: scan pending req_<key>.m86/.ps86/.root/.stream86, compile the pair with compile_dxil, and publish the profile through mesh86_cache.publish (heap-buffer window when the root proves one).
  • gfx2hlsl.py --pending dispatches the mesh86 translator; run.ps1 runs it in the background translation step.
  • The fixture writes a source-built pending slot 86 request through the normal creation path; the translator publishes a profile, and a second fixture run creates the desktop PSO.
  • Negative controls keep the named refusals: a file name that disagrees with its bytes, and a heap-indexed root without a provable window publish no profile.

Tests

  • ctest --preset release --no-tests=error -R '^startup_mesh86_translate_' -V — 2/2 on WARP and RX 9060 XT.
  • Pending request published profile 4 and a desktop PSO was created; heap-window derivation slots 4+2; malformed and unproved controls refused.

Limits

Source-built request; no title scene is claimed. The translator covers the request shapes exercised by the fixture; the remaining scene keys still need their requests/captures.

Refs #3641, #3545, #870

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5585164453 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-01T11:55:18Z. --- ## Problem Pending slot 86 mesh requests were never translated: the launcher/translator published graphics and compute requests, but no mesh86 profile, so scene ExecuteIndirect mesh keys were refused `graphics/mesh_profile_missing`. ## Change - `tools/startup/mesh86_translate.py`: scan pending `req_<key>.m86/.ps86/.root/.stream86`, compile the pair with `compile_dxil`, and publish the profile through `mesh86_cache.publish` (heap-buffer window when the root proves one). - `gfx2hlsl.py --pending` dispatches the mesh86 translator; `run.ps1` runs it in the background translation step. - The fixture writes a source-built pending slot 86 request through the normal creation path; the translator publishes a profile, and a second fixture run creates the desktop PSO. - Negative controls keep the named refusals: a file name that disagrees with its bytes, and a heap-indexed root without a provable window publish no profile. ## Tests - `ctest --preset release --no-tests=error -R '^startup_mesh86_translate_' -V` — 2/2 on WARP and RX 9060 XT. - Pending request published profile 4 and a desktop PSO was created; heap-window derivation slots 4+2; malformed and unproved controls refused. ## Limits Source-built request; no title scene is claimed. The translator covers the request shapes exercised by the fixture; the remaining scene keys still need their requests/captures. Refs #3641, #3545, #870
lambirou commented 2026-12-02 14:45:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lambirou on 2026-12-02T14:45:39Z.

Review: COMMENTED


Reviewed dd7a038d; read the watcher integration, translator and fixture, not built here.

Verdict: approve. The .m86 request is translated only when the Mesh86 compiler is enabled, the manifest/stage readiness check covers the PS-less and pixel-bearing cases, and the watcher writes a named .fail instead of a marker when translation refuses. The source-built translation fixture covers the published profile.

  • SHOULD translate_pending() counts failures, but main() ignores the return value and exits 0 for --once. A one-shot CI or scripted run cannot distinguish "nothing pending" from "every request failed". Return nonzero when translate_pending() reports failures.
  • SHOULD The watcher's translate_request() catches Mesh86Unsupported, OSError, UnicodeError and struct.error, but _mesh_plan() in mesh86_translate.py can raise KeyError on a malformed compiler report. That exception escapes the per-request watcher loop and can stop the translator. Convert missing report fields to Unsupported so one bad request only writes its own .fail.
  • NIT pending_keys() treats a zero-length .ps86 as PS-less; that matches the runtime marker convention, but a short comment beside the has_pixel check would make it explicit.
  • Checked, no finding: the stage tuple preserves the c67/m57/PS-less/graphics cases; the Mesh86 marker is the only new pending extension; manifest_only does not skip Mesh86 stage validation; the publisher is called only after every expected stage exists and is non-empty.

The translator is independent of the HTTP title run; it is a cache-side tool with the stated DXC/compiler preconditions.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6153069128 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6153069128). Originally posted by [lambirou](https://github.com/lambirou) on 2026-12-02T14:45:39Z. **Review:** COMMENTED --- Reviewed `dd7a038d`; read the watcher integration, translator and fixture, not built here. **Verdict: approve.** The `.m86` request is translated only when the Mesh86 compiler is enabled, the manifest/stage readiness check covers the PS-less and pixel-bearing cases, and the watcher writes a named `.fail` instead of a marker when translation refuses. The source-built translation fixture covers the published profile. - **SHOULD** `translate_pending()` counts failures, but `main()` ignores the return value and exits 0 for `--once`. A one-shot CI or scripted run cannot distinguish "nothing pending" from "every request failed". Return nonzero when `translate_pending()` reports failures. - **SHOULD** The watcher's `translate_request()` catches `Mesh86Unsupported`, `OSError`, `UnicodeError` and `struct.error`, but `_mesh_plan()` in `mesh86_translate.py` can raise `KeyError` on a malformed compiler report. That exception escapes the per-request watcher loop and can stop the translator. Convert missing report fields to `Unsupported` so one bad request only writes its own `.fail`. - **NIT** `pending_keys()` treats a zero-length `.ps86` as PS-less; that matches the runtime marker convention, but a short comment beside the `has_pixel` check would make it explicit. - Checked, no finding: the stage tuple preserves the c67/m57/PS-less/graphics cases; the Mesh86 marker is the only new pending extension; `manifest_only` does not skip Mesh86 stage validation; the publisher is called only after every expected stage exists and is non-empty. The translator is independent of the HTTP title run; it is a cache-side tool with the stated DXC/compiler preconditions.
R0Y00 commented 2026-12-02 16:21:52 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T16:21:52Z.

Review: COMMENTED


I trial-merged 22762f72 with main 6e3a181b locally. The sole conflict was CMakePresets.json; keeping the current pr filter and adding startup_mesh86_translate_warp resolved it. MSVC Debug ctest --preset dev --no-tests=error -j 1 -V -R '^startup_mesh86_translate_(warp|hardware)$': hardware passed publication, desktop PSO creation and the malformed key/unproven root controls. WARP failed before translation, expected one pending slot 86 request, found []. This matches the missing .m86 symptom seen in other WARP jobs on a baseline that already includes #3854. Please keep the archive acquisition failure visible in the fixture while updating the branch.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6154794619 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6154794619). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T16:21:52Z. **Review:** COMMENTED --- I trial-merged 22762f72 with main 6e3a181b locally. The sole conflict was `CMakePresets.json`; keeping the current `pr` filter and adding `startup_mesh86_translate_warp` resolved it. MSVC Debug `ctest --preset dev --no-tests=error -j 1 -V -R '^startup_mesh86_translate_(warp|hardware)$'`: hardware passed publication, desktop PSO creation and the malformed key/unproven root controls. WARP failed before translation, `expected one pending slot 86 request, found []`. This matches the missing `.m86` symptom seen in other WARP jobs on a baseline that already includes #3854. Please keep the archive acquisition failure visible in the fixture while updating the branch.
R0Y00 commented 2026-12-02 18:41:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T18:41:55Z.

Review: CHANGES_REQUESTED


Re-tested the current 9dbf8302 on Windows 11 build 26300 with MSVC Debug: ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_mesh86_translate_(warp|hardware)$'. RTX 4060 Laptop (32.0.16.1656) passed. Inbox WARP (10.0.26100.9818, D3D12 debug layer on) again failed before translation with expected one pending slot 86 request, found [], matching the previous trial merge. Please make this translation fixture acquire its seed request deterministically, for example using the fixture-local synchronous publication that #3727 uses. Keep the default async publication regression in #3822 and retain the malformed-key and unproven-root controls. The branch will also need to retain both Mesh86 entries in the PR smoke preset after #3727.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6156706339 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6156706339). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T18:41:55Z. **Review:** CHANGES_REQUESTED --- Re-tested the current `9dbf8302` on Windows 11 build 26300 with MSVC Debug: `ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_mesh86_translate_(warp|hardware)$'`. RTX 4060 Laptop (32.0.16.1656) passed. Inbox WARP (10.0.26100.9818, D3D12 debug layer on) again failed before translation with `expected one pending slot 86 request, found []`, matching the previous trial merge. Please make this translation fixture acquire its seed request deterministically, for example using the fixture-local synchronous publication that #3727 uses. Keep the default async publication regression in #3822 and retain the malformed-key and unproven-root controls. The branch will also need to retain both Mesh86 entries in the PR smoke preset after #3727.
R0Y00 commented 2026-12-02 19:30:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T19:30:31Z.

Review: COMMENTED


The shared publisher fix #3883 has landed as 23986134, so the default asynchronous fixture can now be rechecked on the fixed publisher. I tried GitHub's clean branch-update path, but the trial merge reports a CMakePresets.json conflict. Please refresh from main and keep both the new Mesh86 material checks and startup_mesh86_translate_warp. I'll retest request acquisition and both refusal controls on the refreshed head.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6157480663 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6157480663). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T19:30:31Z. **Review:** COMMENTED --- The shared publisher fix #3883 has landed as `23986134`, so the default asynchronous fixture can now be rechecked on the fixed publisher. I tried GitHub's clean branch-update path, but the trial merge reports a `CMakePresets.json` conflict. Please refresh from main and keep both the new Mesh86 material checks and `startup_mesh86_translate_warp`. I'll retest request acquisition and both refusal controls on the refreshed head.
R0Y00 commented 2026-12-02 19:54:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T19:54:55Z.

Review: COMMENTED


I trial-merged bc5e3ecd with main 1cd972cd locally (tree 46eeb5cb). The sole conflict was the PR filter. Keeping main's selections and adding startup_mesh86_translate_warp registers both Mesh86 presentation and translation. Windows 11 build 26300/MSVC Debug ctest --preset dev --no-tests=error --output-on-failure -j 1 --repeat until-fail:3 -R '^startup_mesh86_translate_(warp|hardware)$' passed 6/6 on WARP and RTX 4060 Laptop, with default asynchronous publication and both refusal controls. This resolves the previously reproduced missing archive on the fixed baseline. The remote branch still needs the resolved main update and its own CI.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6157868710 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6157868710). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T19:54:55Z. **Review:** COMMENTED --- I trial-merged `bc5e3ecd` with main `1cd972cd` locally (tree `46eeb5cb`). The sole conflict was the PR filter. Keeping main's selections and adding `startup_mesh86_translate_warp` registers both Mesh86 presentation and translation. Windows 11 build 26300/MSVC Debug `ctest --preset dev --no-tests=error --output-on-failure -j 1 --repeat until-fail:3 -R '^startup_mesh86_translate_(warp|hardware)$'` passed 6/6 on WARP and RTX 4060 Laptop, with default asynchronous publication and both refusal controls. This resolves the previously reproduced missing archive on the fixed baseline. The remote branch still needs the resolved main update and its own CI.
R0Y00 commented 2026-12-02 20:12:20 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:12:20Z.

Review: APPROVED


Revalidated 0adfdef9 after updating the branch without rewriting it. The sole conflict resolution preserves main's smoke selections and includes startup_mesh86_translate_warp alongside the presentation test. On the exact head, MSVC Debug ctest --preset dev --no-tests=error --output-on-failure -j 1 --repeat until-fail:3 -R '^startup_mesh86_translate_(warp|hardware)$' passed all six runs on Windows 11 build 26300, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. This covers default async request acquisition, successful translation/PSO and the refusal controls. The former missing .m86 finding is addressed by the current publisher baseline.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6158144882 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6158144882). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:12:20Z. **Review:** APPROVED --- Revalidated 0adfdef9 after updating the branch without rewriting it. The sole conflict resolution preserves main's smoke selections and includes `startup_mesh86_translate_warp` alongside the presentation test. On the exact head, MSVC Debug `ctest --preset dev --no-tests=error --output-on-failure -j 1 --repeat until-fail:3 -R '^startup_mesh86_translate_(warp|hardware)$'` passed all six runs on Windows 11 build 26300, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656. This covers default async request acquisition, successful translation/PSO and the refusal controls. The former missing `.m86` finding is addressed by the current publisher baseline.
R0Y00 commented 2026-12-02 20:26:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T20:26:55Z.

Review: APPROVED


Rechecked 1462b735 after #3697 landed. The only conflict was CMakePresets.json. The pr preset lists the merged XMem allocation test, the Mesh86 present test and the new Mesh86 translation test. The PR's other changes match the previously reviewed diff. Independent MSVC Debug ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^(startup_mesh86_translate_(warp|hardware)|standin_exports_check)$' passed 3/3 on Windows 11 build 26300 with WARP and RTX 4060 Laptop. The GPU cases cover pending translation, publication and the refusal controls.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6158367725 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3728#pullrequestreview-6158367725). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-12-02T20:26:55Z. **Review:** APPROVED --- Rechecked `1462b735` after #3697 landed. The only conflict was `CMakePresets.json`. The `pr` preset lists the merged XMem allocation test, the Mesh86 present test and the new Mesh86 translation test. The PR's other changes match the previously reviewed diff. Independent MSVC Debug `ctest --preset dev --no-tests=error -j 1 --output-on-failure -R '^(startup_mesh86_translate_(warp|hardware)|standin_exports_check)$'` passed 3/3 on Windows 11 build 26300 with WARP and RTX 4060 Laptop. The GPU cases cover pending translation, publication and the refusal controls.
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!3728
No description provided.