runtime: route inline device descriptor creation through the shim #3213

Manually merged
github merged 1 commit from github-bot/gh-3211 into gh-pr/3211/base 2026-11-27 22:03:25 +00:00 AGit
Owner

@⁠R0Y00 on GitHub · 2026-11-27 21:48 UTC · original
R0Y00:codex/device-cbv-vtable → main · +8 −0 · 2 files · 1 commits · merged 2026-11-27 21:57 UTC

Refs #3211 and #3074.

The guest device ABI checks byte +0x18 before using inline descriptor creation. The shim now requests vtable calls so slot 17 can record constant-buffer views in the descriptor bookkeeping. The existing indirect-dispatch fixture checks the byte on the guest wrapper.

Local verification on 024619df2 (MSVC Release /O2, Windows 11 build 26200, RTX 4060 Laptop GPU driver 32.0.16.1656 and WARP). Both WARP and hardware passed ctest --preset release --no-tests=error -R '^startup_indirect_dispatch_(warp|hardware)$'. The target workload still needs end-to-end indirect argument and scene-color verification.

**@⁠R0Y00** on GitHub · 2026-11-27 21:48 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3211) `R0Y00:codex/device-cbv-vtable` → `main` · +8 −0 · 2 files · 1 commits · merged 2026-11-27 21:57 UTC Refs #3211 and #3074. The guest device ABI checks byte +0x18 before using inline descriptor creation. The shim now requests vtable calls so slot 17 can record constant-buffer views in the descriptor bookkeeping. The existing indirect-dispatch fixture checks the byte on the guest wrapper. Local verification on `024619df2` (MSVC Release /O2, Windows 11 build 26200, RTX 4060 Laptop GPU driver 32.0.16.1656 and WARP). Both WARP and hardware passed `ctest --preset release --no-tests=error -R '^startup_indirect_dispatch_(warp|hardware)$'`. The target workload still needs end-to-end indirect argument and scene-color verification.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 21:49:50 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-27 21:56 UTC · original · reviewed

Independent verification of 024619df on main 28e4a025 (trial tree f04d1f0a). The static assertion pins the guest byte at +0x18, and initialization only changes the device wrapper. The current main additions through d474a393 touch the direct compiler and its fixtures, so the wrapper and fixture contents remain identical.

Built startup_indirect_dispatch and ran ctest --test-dir <build> --no-tests=error -j1 -V -R '^startup_indirect_(dispatch|root_constants|count)_(warp|hardware)$'. Debug and Release /O2 each passed 6/6, with no skips. WARP 10.0.26100.9818 and RTX 4060 Laptop (driver 32.0.16.1656) ran on Windows 11 26200.9974 with the D3D12 debug layer enabled. Hosted Windows passed. This verifies the wrapper ABI flag and indirect-dispatch regressions. The original executable's indirect-argument and scene-colour evidence remains tracked in #3211.

**@⁠R0Y00** on GitHub · 2026-11-27 21:56 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3211#pullrequestreview-6093718382) · **reviewed** Independent verification of `024619df` on `main` `28e4a025` (trial tree `f04d1f0a`). The static assertion pins the guest byte at +0x18, and initialization only changes the device wrapper. The current main additions through `d474a393` touch the direct compiler and its fixtures, so the wrapper and fixture contents remain identical. Built `startup_indirect_dispatch` and ran `ctest --test-dir <build> --no-tests=error -j1 -V -R '^startup_indirect_(dispatch|root_constants|count)_(warp|hardware)$'`. Debug and Release /O2 each passed 6/6, with no skips. WARP 10.0.26100.9818 and RTX 4060 Laptop (driver 32.0.16.1656) ran on Windows 11 26200.9974 with the D3D12 debug layer enabled. Hosted Windows passed. This verifies the wrapper ABI flag and indirect-dispatch regressions. The original executable's indirect-argument and scene-colour evidence remains tracked in #3211.
github-bot changed target branch from main to gh-pr/3211/base 2026-11-27 22:03:24 +00:00
github manually merged commit 024619df23 into gh-pr/3211/base 2026-11-27 22:03:25 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.