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

Merged
R0Y00 merged 1 commit from upstream-pr/480 into main 2026-11-22 06:25:37 +00:00
R0Y00 commented 2026-11-22 06:19:41 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T06:19:41Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6539259717 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/480). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T06:19:41Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:43:16 +00:00
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!474
No description provided.