Measure fixed-profile shader coverage and packed RGB readback #527

Manually merged
github merged 3 commits from gh-pr/527/head into gh-pr/527/base 2026-11-26 21:59:06 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-22 09:22 UTC · original
R0Y00:codex/fixed-profile-rescan → main · +294 −2 · 5 files · 3 commits · merged 2026-11-22 09:38 UTC

Refresh the fixed-profile shader measurement through main 26544c6. This PR supplies the archive acceptance command and the independent Windows readback for two additional pixel shaders.

Stage Records DXIL D3D12 PSO Matched on hardware and WARP Delta
PS 12,101 849 849 849 +2
CS 2,689 12 12 12 0
MS 9,282 2 2 2 0
VS 2,236 0 0 0 0
GS 195 0 0 0 0

The readback run used 1aafb0f. At f94c254 I compared both affected PS profiles by record identity, bindings and generated HLSL with the readback run. Both sets and every accepted source matched. The independently rerun complete classifier counted 26,503 records at each revision. A third complete scan at 26544c6 returned every previous source unchanged and added an RGB texture sample with constant alpha. Both adapters also verified its 4,096-pixel ramp and 1,024-pixel transparent input. Both rejected swapped red/blue and copied input-alpha controls. docs/experiments.md gives the stage-specific first rejections and mesh survey size limit.

Windows 11 26200.9974 with D3D12 debug enabled. RTX 4060 Laptop 32.0.16.1656 and Microsoft WARP 10.0.26100.9818. Both adapters verified the previous 861 records and the two additional PS with controlled inputs. The new RGB test checks three inputs and three negative references per adapter.

Local reproduction commands:

python3 -B tools/shader_profile_audit.py "$ARCHIVE" --llvm libLLVM-15.so.1 --source-dir out/profile-sources > out/profile-counts.json
cmake --build --preset dev --target offscreen_check
python -B tests/packed_rgb_case.py out/build/dev/offscreen_check.exe out/packed-rgb.dxil hardware
python -B tests/packed_rgb_case.py out/build/dev/offscreen_check.exe out/packed-rgb.dxil warp
python -B tests/dxcontainer_part_offsets_check.py
python -B tests/docs_links_check.py

The experiment section includes the DXC command and a selector for the new PS. Local package inputs and generated shader sources stay in ignored directories. Source-built container controls cover a valid sibling record inside trailing bytes and a malformed frame. CI can run these controls without the archive.

**@⁠R0Y00** on GitHub · 2026-11-22 09:22 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/527) `R0Y00:codex/fixed-profile-rescan` → `main` · +294 −2 · 5 files · 3 commits · merged 2026-11-22 09:38 UTC Refresh the fixed-profile shader measurement through main 26544c6. This PR supplies the archive acceptance command and the independent Windows readback for two additional pixel shaders. | Stage | Records | DXIL | D3D12 PSO | Matched on hardware and WARP | Delta | | --- | ---: | ---: | ---: | ---: | ---: | | PS | 12,101 | 849 | 849 | 849 | +2 | | CS | 2,689 | 12 | 12 | 12 | 0 | | MS | 9,282 | 2 | 2 | 2 | 0 | | VS | 2,236 | 0 | 0 | 0 | 0 | | GS | 195 | 0 | 0 | 0 | 0 | The readback run used 1aafb0f. At f94c254 I compared both affected PS profiles by record identity, bindings and generated HLSL with the readback run. Both sets and every accepted source matched. The independently rerun complete classifier counted 26,503 records at each revision. A third complete scan at 26544c6 returned every previous source unchanged and added an RGB texture sample with constant alpha. Both adapters also verified its 4,096-pixel ramp and 1,024-pixel transparent input. Both rejected swapped red/blue and copied input-alpha controls. docs/experiments.md gives the stage-specific first rejections and mesh survey size limit. Windows 11 26200.9974 with D3D12 debug enabled. RTX 4060 Laptop 32.0.16.1656 and Microsoft WARP 10.0.26100.9818. Both adapters verified the previous 861 records and the two additional PS with controlled inputs. The new RGB test checks three inputs and three negative references per adapter. Local reproduction commands: ```sh python3 -B tools/shader_profile_audit.py "$ARCHIVE" --llvm libLLVM-15.so.1 --source-dir out/profile-sources > out/profile-counts.json ``` ```powershell cmake --build --preset dev --target offscreen_check python -B tests/packed_rgb_case.py out/build/dev/offscreen_check.exe out/packed-rgb.dxil hardware python -B tests/packed_rgb_case.py out/build/dev/offscreen_check.exe out/packed-rgb.dxil warp python -B tests/dxcontainer_part_offsets_check.py python -B tests/docs_links_check.py ``` The experiment section includes the DXC command and a selector for the new PS. Local package inputs and generated shader sources stay in ignored directories. Source-built container controls cover a valid sibling record inside trailing bytes and a malformed frame. CI can run these controls without the archive.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:59:04 +00:00
github manually merged commit 6e7f126565 into gh-pr/527/base 2026-11-26 21:59:06 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.