startup: hand off the packed screen-position gradient fixture #1634

Manually merged
github merged 1 commit from gh-pr/1634/head into gh-pr/1634/base 2026-11-26 23:22:18 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-24 15:29 UTC · original
R0Y00:codex/1629-packed-position-fixture → main · +115 −9 · 7 files · 1 commits · merged 2026-11-24 15:34 UTC

Refs #1629. This draft hands the shader ABI contributor a reproducible gradient and an optional translator input for two explicitly supplied hardware masks. The original composite's input-enable and input-address masks still need to be located and associated with its PSO. The startup request path continues to use its existing defaults.

The source-built pixel shader exports a live-in VGPR to all four channels. With matching masks 0x8100 the preceding scalar consumes v0 and the position lands in v1. With 0x8002 the preceding IJ pair consumes v0/v1 and the position lands in v2. The readback compares all 91 pixels against the integer packing of their own X and Y. Missing metadata, reading the wrong register and disabling the input each trigger the expected mismatch at (1,0). Differing enable/address masks are rejected.

For an independent run on a configured Windows checkout:

cmake --build --preset dev --target offscreen_check
ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V

Tested commit 198e4e16 on Windows 11 build 26200, RTX 4060 Laptop GPU driver 32.0.16.1656 and Microsoft WARP driver 10.0.26100.9818, with the debug layer enabled. Both FXC and DXC were used. The two new CTests and both existing flat-parameter draw regressions passed (4/4, zero skips).

The next contribution on #1629 is capture-time provenance for both masks and their association with the exact pipeline, including how the cache distinguishes different input contracts. Local executable verification remains with the main integration thread.

**@⁠R0Y00** on GitHub · 2026-11-24 15:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1634) `R0Y00:codex/1629-packed-position-fixture` → `main` · +115 −9 · 7 files · 1 commits · merged 2026-11-24 15:34 UTC Refs #1629. This draft hands the shader ABI contributor a reproducible gradient and an optional translator input for two explicitly supplied hardware masks. The original composite's input-enable and input-address masks still need to be located and associated with its PSO. The startup request path continues to use its existing defaults. The source-built pixel shader exports a live-in VGPR to all four channels. With matching masks 0x8100 the preceding scalar consumes v0 and the position lands in v1. With 0x8002 the preceding IJ pair consumes v0/v1 and the position lands in v2. The readback compares all 91 pixels against the integer packing of their own X and Y. Missing metadata, reading the wrong register and disabling the input each trigger the expected mismatch at (1,0). Differing enable/address masks are rejected. For an independent run on a configured Windows checkout: ```powershell cmake --build --preset dev --target offscreen_check ctest --preset dev --no-tests=error -R '^startup_packed_screen_position_(hardware|warp)$' -V ``` Tested commit 198e4e16 on Windows 11 build 26200, RTX 4060 Laptop GPU driver 32.0.16.1656 and Microsoft WARP driver 10.0.26100.9818, with the debug layer enabled. Both FXC and DXC were used. The two new CTests and both existing flat-parameter draw regressions passed (4/4, zero skips). The next contribution on #1629 is capture-time provenance for both masks and their association with the exact pipeline, including how the cache distinguishes different input contracts. Local executable verification remains with the main integration thread.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:22:16 +00:00
github manually merged commit 198e4e16cd into gh-pr/1634/base 2026-11-26 23:22:18 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.