shader: translate unsampled pixel colors and masked MRT0 exports #480

Manually merged
github merged 1 commit from gh-pr/480/head into gh-pr/480/base 2026-11-26 21:55:10 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-22 06:19 UTC · original
R0Y00:codex/ps-export → main · +107 −23 · 8 files · 1 commits · merged 2026-11-22 06:25 UTC

Advances the full-package shader comparison after #477. A zero-sample pixel program may export immediate or b0-backed RG or RGBA. The new explicit binding profile permits a CBV at table byte zero. The two-channel shader exports only RG; its paired PSO enables the red and green write mask. The draw checks both untouched channels against the clear value.

Local audit on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), with the debug layer enabled. On the same 26,503 records as 3310cb8, the four existing profiles plus six no-texture profiles yielded 334 DXIL compilations, 334 records with graphics pipelines, and 334 with matching output on both adapters (baseline 2). There are 333 distinct containers and 21 distinct native programs. Each adapter ran 352 draws, 4096 pixels per draw, with exact float4 matches. New constant-buffer cases used two inputs. Local case data stayed out of Git.

Source-built regression commands:

  • python3 -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 passed with local LLVM 15 tools.
  • ctest --preset dev --no-tests=error -R '^pixel_aot_buffer_color_' -V passed on hardware and WARP. Includes stale expected values for both masks, two buffer inputs, plus assembler/binding rejection controls.

AI-assisted.

Additional observations on the same GPU: the existing pixel_aot_hardware CTest reached its 60 s timeout. Running its complete draw command directly returned 0 in 70.1 s; the baseline translator and draw suite on the same renderer returned 0 in 78.4 s. The dedicated buffer-color CTests passed in 3.15 s on hardware and 0.96 s on WARP. The existing WARP aggregate also passed.

A local, conservative straight-line trace of the 3,721 newly extracted two-exit records whose last baseline profile failed on s9 found 3,241 using its value as the low word of a zero-extended scalar load address, 15 using it through m0 for interpolation and 465 without a classified first use. This observation identifies address provenance, not the contents of each descriptor or support for the rest of those programs.

**@⁠R0Y00** on GitHub · 2026-11-22 06:19 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/480) `R0Y00:codex/ps-export` → `main` · +107 −23 · 8 files · 1 commits · merged 2026-11-22 06:25 UTC Advances the full-package shader comparison after #477. A zero-sample pixel program may export immediate or b0-backed RG or RGBA. The new explicit binding profile permits a CBV at table byte zero. The two-channel shader exports only RG; its paired PSO enables the red and green write mask. The draw checks both untouched channels against the clear value. Local audit on RTX 4060 Laptop (32.0.16.1656) and WARP (10.0.26100.9818), with the debug layer enabled. On the same 26,503 records as 3310cb8, the four existing profiles plus six no-texture profiles yielded 334 DXIL compilations, 334 records with graphics pipelines, and 334 with matching output on both adapters (baseline 2). There are 333 distinct containers and 21 distinct native programs. Each adapter ran 352 draws, 4096 pixels per draw, with exact float4 matches. New constant-buffer cases used two inputs. Local case data stayed out of Git. Source-built regression commands: - `python3 -B tests/pixel_aot_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1` passed with local LLVM 15 tools. - `ctest --preset dev --no-tests=error -R '^pixel_aot_buffer_color_' -V` passed on hardware and WARP. Includes stale expected values for both masks, two buffer inputs, plus assembler/binding rejection controls. AI-assisted. Additional observations on the same GPU: the existing pixel_aot_hardware CTest reached its 60 s timeout. Running its complete draw command directly returned 0 in 70.1 s; the baseline translator and draw suite on the same renderer returned 0 in 78.4 s. The dedicated buffer-color CTests passed in 3.15 s on hardware and 0.96 s on WARP. The existing WARP aggregate also passed. A local, conservative straight-line trace of the 3,721 newly extracted two-exit records whose last baseline profile failed on s9 found 3,241 using its value as the low word of a zero-extended scalar load address, 15 using it through m0 for interpolation and 465 without a classified first use. This observation identifies address provenance, not the contents of each descriptor or support for the rest of those programs.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:55:08 +00:00
github manually merged commit 208ac7f286 into gh-pr/480/base 2026-11-26 21:55:10 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.