shader: translate unsampled pixel colors and masked MRT0 exports #474
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/480"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.1passed with local LLVM 15 tools.ctest --preset dev --no-tests=error -R '^pixel_aot_buffer_color_' -Vpassed 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.