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

Merged
R0Y00 merged 1 commit from upstream-pr/3211 into main 2026-11-27 21:57:02 +00:00
R0Y00 commented 2026-11-27 21:48:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T21:48:42Z.


Refs #3209 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5533516487 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3211). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T21:48:42Z. --- Refs #3209 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 commented 2026-11-27 21:56:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-27T21:56:50Z.

Review: COMMENTED


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 #3209.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6093718382 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3211#pullrequestreview-6093718382). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-27T21:56:50Z. **Review:** COMMENTED --- 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 #3209.
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!3211
No description provided.