shader: lower explicit level-zero texture sampling #315

Merged
Vonsek merged 5 commits from upstream-pr/320 into main 2026-11-22 09:46:25 +00:00
Vonsek commented 2026-11-21 21:59:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Vonsek on 2026-11-21T21:59:16Z.


Change

Lower the single-sample gfx1013 image_sample_lz 2D RGBA form to HLSL SampleLevel at level zero. Both halves of an interpolation must share the same tracked mask. Entry-mask coordinates can feed the explicit-LOD sample. Implicit samples still require whole-quad coordinates.

This changes the pixel lowerer in tools/pixel_aot.py and adds a two-mip case to the existing offscreen BC7 check. The RGB mask in #303, affine helper-lane coordinates in #283, partial VM waits in #176 and magnified BC7 tail checks in #313 cover separate behavior.

Verification

Tested 85095f9 after merging upstream 1292d15 into this branch. Windows build 26200.9974, Microsoft WARP 10.0.26100.9818 and RTX 5080 driver 32.0.16.1692. The D3D12 debug layer was unavailable.

cmake --preset dev
cmake --build --preset dev --target offscreen_check
ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$'
python -B tests/bidi_controls_check.py
python -B tests/form_coverage_check.py
git diff --check upstream/main...HEAD

All six CTests passed without capability skips. The bidi, form coverage and whitespace checks passed.

python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>"

The initial source-built fixture failed with Unknown interpolation context. LLVM 15 now assembles and decodes it to the same HLSL produced from source instruction text. The Windows assembler wrapper invokes clang -cc1as -triple amdgcn--amdpal -target-cpu gfx1013 -filetype obj. Controls reject a mix of execution masks within one interpolation pair and implicit sampling from entry-only coordinates.

Evidence and follow-up

The MIT-licensed fixture uses the repository's source-built copy shader and two solid BC7 mips. The explicit sample matches level zero across 16 pixels and 64 channels on both adapters. Under the same texture view and viewport, the implicit sample matches mip 1 and fails against the mip-0 reference at (0, 0). Reproduction guide

In a read-only local check, the normal CLI on 1292d15 rejected three candidate records during interpolation. This branch translated all three and DXC compiled them without diagnostics. They contained two distinct native programs. Both matched an independent 16-pixel CPU reference on WARP and RTX 5080 with a synthetic two-mip texture and a point-clamp sampler. A wrong mip failed first at (0, 0) and transposed UV failed first at (2, 0), as predicted. The archive digest was unchanged. The original pipeline and resources remain unverified.

This contribution was AI-assisted.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6534936982 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/320). Originally posted by [Vonsek](https://github.com/Vonsek) on 2026-11-21T21:59:16Z. --- ## Change Lower the single-sample gfx1013 `image_sample_lz` 2D RGBA form to HLSL `SampleLevel` at level zero. Both halves of an interpolation must share the same tracked mask. Entry-mask coordinates can feed the explicit-LOD sample. Implicit samples still require whole-quad coordinates. This changes the pixel lowerer in `tools/pixel_aot.py` and adds a two-mip case to the existing offscreen BC7 check. The RGB mask in #303, affine helper-lane coordinates in #283, partial VM waits in #176 and magnified BC7 tail checks in #313 cover separate behavior. ## Verification Tested `85095f9` after merging upstream `1292d15` into this branch. Windows build 26200.9974, Microsoft WARP 10.0.26100.9818 and RTX 5080 driver 32.0.16.1692. The D3D12 debug layer was unavailable. ```powershell cmake --preset dev cmake --build --preset dev --target offscreen_check ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$' python -B tests/bidi_controls_check.py python -B tests/form_coverage_check.py git diff --check upstream/main...HEAD ``` All six CTests passed without capability skips. The bidi, form coverage and whitespace checks passed. ```powershell python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>" ``` The initial source-built fixture failed with `Unknown interpolation context`. LLVM 15 now assembles and decodes it to the same HLSL produced from source instruction text. The Windows assembler wrapper invokes `clang -cc1as -triple amdgcn--amdpal -target-cpu gfx1013 -filetype obj`. Controls reject a mix of execution masks within one interpolation pair and implicit sampling from entry-only coordinates. ## Evidence and follow-up The MIT-licensed fixture uses the repository's source-built copy shader and two solid BC7 mips. The explicit sample matches level zero across 16 pixels and 64 channels on both adapters. Under the same texture view and viewport, the implicit sample matches mip 1 and fails against the mip-0 reference at (0, 0). [Reproduction guide](https://github.com/Vonsek/Xbox2Windows/blob/codex/pixel-explicit-zero-lod/docs/experiments.md#offline-pixel-shader-recompilation) In a read-only local check, the normal CLI on `1292d15` rejected three candidate records during interpolation. This branch translated all three and DXC compiled them without diagnostics. They contained two distinct native programs. Both matched an independent 16-pixel CPU reference on WARP and RTX 5080 with a synthetic two-mip texture and a point-clamp sampler. A wrong mip failed first at (0, 0) and transposed UV failed first at (2, 0), as predicted. The archive digest was unchanged. The original pipeline and resources remain unverified. This contribution was AI-assisted. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets.
upstream-sync closed this pull request 2026-11-24 06:42:24 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 06:48:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-21T21:59:24Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T22:02:43.088963Z 85095f9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7069860575 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/320#issuecomment-7069860575). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-21T21:59:24Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"85095f99e97741ed515935953aa0d3c4033716cd","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-21T22:02:43.088963Z">2026-11-21T22:02:43.088963Z</relative-time> | `85095f9` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
rasptum commented 2026-11-24 06:48:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T22:37:30Z.


Independent verification of this PR on Windows 10, where the D3D12 debug layer is available and the in-box WARP is the old 10.0.19041 build. Short version: the new explicit level-zero case and all of its controls behave as described on three backends, with debug_errors=0 debug_warnings=0 on every draw. I found nothing caused by this PR.

Environment

  • Commit tested: 85095f9 (PR head). Comparison baseline: 1292d15, the merge base with main, built the same way.
  • Windows 10 22H2, build 19045.6466. MSVC 14.44.35207, Windows SDK 10.0.26100 (DXC from that SDK), Python venv per requirements-dev.txt.
  • Build A (dev preset, in-box D3D12 runtime): Microsoft Basic Render Driver 10.0.19041.5794 (Shader Model 6.2) and NVIDIA GeForce RTX 3060, driver 32.0.15.9636.
  • Build B (Ninja, Debug, -DOFFSCREEN_AGILITY_620_DIR=<Agility SDK 1.620.2> -DOFFSCREEN_WARP_DIR=<Microsoft.Direct3D.WARP 1.0.22 x64>): WARP 1.0.22.0 and the same RTX 3060.
  • Debug layer: debug_layer=enabled on all three backends in both builds.

Commands

.\tools\dev.ps1
cmake --preset dev
cmake --build --preset dev
ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$'
ctest --preset dev --no-tests=error --output-on-failure
cmake -S . -B out/build/w22 -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=cl -DOFFSCREEN_AGILITY_620_DIR=<...> -DOFFSCREEN_WARP_DIR=<...>
cmake --build out/build/w22
ctest --test-dir out/build/w22 --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$'
ctest --test-dir out/build/w22 --no-tests=error --output-on-failure
python -B tests/bidi_controls_check.py
python -B tests/form_coverage_check.py
git diff --check 1292d15...HEAD
python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>"

Because bc7_draw_warp already fails on main with the in-box WARP (see below), I also ran each offscreen_check.exe <backend> --check-bc7 / --check-bc7-mip1 / --check-bc7-tail invocation of tests/bc7_draw_check.py separately with a local driver that does not stop at the first failure: 29 sub-cases on this branch, 24 at 1292d15.

Results

Backend pixel_aot_* bc7_draw_* New explicit LOD 0 draw Draw controls Debug layer
WARP 10.0.19041.5794 (in-box) pass fails, same as 1292d15, not in the new case pass, 16 pixels, 64 channels, max_absolute_error=0 as described enabled, 0 errors, 0 warnings
WARP 1.0.22.0 with Agility 1.620.2 pass pass pass, 16 pixels, 64 channels, max_absolute_error=0 as described enabled, 0 errors, 0 warnings
RTX 3060, 32.0.15.9636 (both builds) pass pass pass, 16 pixels, 64 channels, max_absolute_error=0 as described enabled, 0 errors, 0 warnings

docs_links and pso_readiness_check passed in both builds. No capability skips among the six listed tests.

The new case, per backend (identical on all three):

  • Implicit Sample, 8x8 texture, 4x4 viewport, mip-1 reference: pass. The implicit sample selects mip 1.
  • Explicit SampleLevel(..., 0.0f), same view and viewport, mip-0 reference: pass.
  • Control from the PR: implicit Sample against the mip-0 reference exits 1 with pixel_mismatch x=0 y=0 (expected 0.995605, 0, 0, 0.995605; actual 0, 0.995605, 0, 0.995605).
  • Extra local control: the explicit shader against the mip-1 reference also exits 1 with pixel_mismatch x=0 y=0, with the colors the other way around. So the explicit draw is not passing by accident of the reference.
  • Extra local check: the explicit shader also reproduces the patterned 80x72 single-mip --check-bc7 draw exactly, so level-0 texel addressing matches the implicit path, not only the level choice.

Translator controls (these run inside pixel_aot_check.py in both draw and binary mode, and I printed the outcomes separately):

  • image_sample_lz from entry-mask coordinates: translated to tex.SampleLevel(samp, float2(uv.x, uv.y), 0.0f).
  • Implicit image_sample from entry-only coordinates: rejected, ValueError: Unsupported texture coordinate.
  • Mixed execution masks within one interpolation pair: rejected, ValueError: Unpaired interpolation.
  • At 1292d15 all three raise Unknown interpolation context, which matches the PR description.

LLVM 15.0.7 binary round trip: exit 0 on this branch (and on 1292d15, with one fixture fewer). My assembler stand-in calls clang --target=amdgcn--amdpal -mcpu=gfx1013 -c -x assembler, not clang -cc1as, so this is the same assembler through a slightly different driver path.

bidi_controls_check.py, form_coverage_check.py and git diff --check: all exit 0.

The in-box WARP failure is not from this PR

bc7_draw_warp fails on WARP 10.0.19041.5794 in two sub-cases, both after check_lod_zero has already passed:

  • --check-bc7-tail <copy.cso> 11 --base-size 4096 4 ...: pixel_mismatch x=2044 y=0
  • --check-bc7-tail <copy.cso> 11 --base-size 4 4096 ...: pixel_mismatch x=0 y=2044

The same two sub-cases fail with the same first mismatch at 1292d15, and the other 22 shared sub-cases give the same result on both commits. This is the magnified tail behavior of the old WARP that #313 addressed. #313 merged after this run, so the two sub-cases should pass once this branch includes main; I have not rerun that combination. All 29 sub-cases behave as expected on WARP 1.0.22 and on the RTX 3060.

Full suite

Build Commit Passed Capability skips Failed
A, in-box 85095f9 124 17 2: bc7_draw_warp, gpu_alias_lookup_writes_warp
A, in-box 1292d15 124 17 the same 2
B, Agility 1.620.2 + WARP 1.0.22 85095f9 138 3 2: bvh_wave64_warp, wave_shuffle_warp
B, Agility 1.620.2 + WARP 1.0.22 1292d15 138 3 the same 2

All four failures also fail at the merge base with the same first mismatch, so none is new with this PR. gpu_alias_lookup_writes_warp reports record=1 field=64 expected=0001f5a0 actual=0007d680 on both commits. The two wave tests are #145.

Skips, identical on both commits. Build A: bvh_wave64_hardware, wave_shuffle_hardware, dxr_query_warp, dxr_update_warp, dxr_facing_warp, bvh_buffer_ops_warp, bvh_reads_warp, bvh_waves_warp, bvh_wave64_warp, bvh_hits_warp, bvh_differential_warp, bvh_atomics_warp, bvh_numeric_warp, bvh_packed_warp, wave_shuffle_warp, shader_metadata_probe, dxil_retarget_probe. Build B: bvh_wave64_hardware, shader_metadata_probe, dxil_retarget_probe.

One timing note: in the first full run of build B, bvh_wave64_warp hit its 45 s timeout on both commits while other GPU jobs were running on this machine. Rerun alone and in a second full run it fails in 0.06 s with the #145 mismatch (record=0 field=25). It does not touch this PR's code. Also, pixel_aot_hardware took between 24 s and 43 s here against its 60 s timeout, depending on load.

Adapter dependence in the new path

I looked for it on the old WARP specifically, since that adapter has differed from Windows 11 WARP in sampling paths before. I found none: level selection for implicit Sample on the 4x4 viewport (mip 1) and for SampleLevel at 0 (mip 0) is the same on WARP 10.0.19041, WARP 1.0.22 and the RTX 3060, bit-exact in all 64 channels.

As a local diagnostic only, I rebuilt offscreen_check with the static sampler changed from FILTER_MIN_MAG_MIP_POINT to FILTER_MIN_MAG_MIP_LINEAR and repeated the four draws. Results were unchanged on all three backends. That is a weak check, since both mips are solid colors and the implicit LOD is exactly 1.0, so it only shows that linear filtering does not blend levels in this configuration.

Not checked

  • Fractional implicit LOD, non-solid mips under linear filtering, anisotropic or biased samplers.
  • Helper-lane behavior at triangle edges: the fixture is a full-screen triangle with full pixel coverage.
  • The read-only local check on candidate records described in the PR. I used source-built fixtures only.
  • AMD and Intel adapters, and Windows 11.
  • The clang -cc1as wrapper form used by the author.

AI-assisted (Claude Code). The Windows results were measured locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7070311879 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/320#issuecomment-7070311879). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T22:37:30Z. --- Independent verification of this PR on Windows 10, where the D3D12 debug layer is available and the in-box WARP is the old 10.0.19041 build. Short version: the new explicit level-zero case and all of its controls behave as described on three backends, with `debug_errors=0 debug_warnings=0` on every draw. I found nothing caused by this PR. ## Environment - Commit tested: `85095f9` (PR head). Comparison baseline: `1292d15`, the merge base with `main`, built the same way. - Windows 10 22H2, build 19045.6466. MSVC 14.44.35207, Windows SDK 10.0.26100 (DXC from that SDK), Python venv per `requirements-dev.txt`. - Build A (`dev` preset, in-box D3D12 runtime): Microsoft Basic Render Driver 10.0.19041.5794 (Shader Model 6.2) and NVIDIA GeForce RTX 3060, driver 32.0.15.9636. - Build B (Ninja, Debug, `-DOFFSCREEN_AGILITY_620_DIR=<Agility SDK 1.620.2> -DOFFSCREEN_WARP_DIR=<Microsoft.Direct3D.WARP 1.0.22 x64>`): WARP 1.0.22.0 and the same RTX 3060. - Debug layer: `debug_layer=enabled` on all three backends in both builds. ## Commands ```powershell .\tools\dev.ps1 cmake --preset dev cmake --build --preset dev ctest --preset dev --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$' ctest --preset dev --no-tests=error --output-on-failure cmake -S . -B out/build/w22 -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=cl -DOFFSCREEN_AGILITY_620_DIR=<...> -DOFFSCREEN_WARP_DIR=<...> cmake --build out/build/w22 ctest --test-dir out/build/w22 --no-tests=error --output-on-failure -R '^(pixel_aot_(warp|hardware)|bc7_draw_(warp|hardware)|docs_links|pso_readiness_check)$' ctest --test-dir out/build/w22 --no-tests=error --output-on-failure python -B tests/bidi_controls_check.py python -B tests/form_coverage_check.py git diff --check 1292d15...HEAD python -B tests/pixel_aot_check.py binary "<LLVM 15.0.7 gfx1013 assembler wrapper>" "<LLVM 15.0.7 llvm-objcopy.exe>" "<LLVM 15.0.7 LLVM-C.dll>" ``` Because `bc7_draw_warp` already fails on `main` with the in-box WARP (see below), I also ran each `offscreen_check.exe <backend> --check-bc7 / --check-bc7-mip1 / --check-bc7-tail` invocation of `tests/bc7_draw_check.py` separately with a local driver that does not stop at the first failure: 29 sub-cases on this branch, 24 at `1292d15`. ## Results | Backend | `pixel_aot_*` | `bc7_draw_*` | New explicit LOD 0 draw | Draw controls | Debug layer | |---|---|---|---|---|---| | WARP 10.0.19041.5794 (in-box) | pass | fails, same as `1292d15`, not in the new case | pass, 16 pixels, 64 channels, max_absolute_error=0 | as described | enabled, 0 errors, 0 warnings | | WARP 1.0.22.0 with Agility 1.620.2 | pass | pass | pass, 16 pixels, 64 channels, max_absolute_error=0 | as described | enabled, 0 errors, 0 warnings | | RTX 3060, 32.0.15.9636 (both builds) | pass | pass | pass, 16 pixels, 64 channels, max_absolute_error=0 | as described | enabled, 0 errors, 0 warnings | `docs_links` and `pso_readiness_check` passed in both builds. No capability skips among the six listed tests. The new case, per backend (identical on all three): - Implicit `Sample`, 8x8 texture, 4x4 viewport, mip-1 reference: pass. The implicit sample selects mip 1. - Explicit `SampleLevel(..., 0.0f)`, same view and viewport, mip-0 reference: pass. - Control from the PR: implicit `Sample` against the mip-0 reference exits 1 with `pixel_mismatch x=0 y=0` (expected 0.995605, 0, 0, 0.995605; actual 0, 0.995605, 0, 0.995605). - Extra local control: the explicit shader against the mip-1 reference also exits 1 with `pixel_mismatch x=0 y=0`, with the colors the other way around. So the explicit draw is not passing by accident of the reference. - Extra local check: the explicit shader also reproduces the patterned 80x72 single-mip `--check-bc7` draw exactly, so level-0 texel addressing matches the implicit path, not only the level choice. Translator controls (these run inside `pixel_aot_check.py` in both `draw` and `binary` mode, and I printed the outcomes separately): - `image_sample_lz` from entry-mask coordinates: translated to `tex.SampleLevel(samp, float2(uv.x, uv.y), 0.0f)`. - Implicit `image_sample` from entry-only coordinates: rejected, `ValueError: Unsupported texture coordinate`. - Mixed execution masks within one interpolation pair: rejected, `ValueError: Unpaired interpolation`. - At `1292d15` all three raise `Unknown interpolation context`, which matches the PR description. LLVM 15.0.7 binary round trip: exit 0 on this branch (and on `1292d15`, with one fixture fewer). My assembler stand-in calls `clang --target=amdgcn--amdpal -mcpu=gfx1013 -c -x assembler`, not `clang -cc1as`, so this is the same assembler through a slightly different driver path. `bidi_controls_check.py`, `form_coverage_check.py` and `git diff --check`: all exit 0. ## The in-box WARP failure is not from this PR `bc7_draw_warp` fails on WARP 10.0.19041.5794 in two sub-cases, both after `check_lod_zero` has already passed: - `--check-bc7-tail <copy.cso> 11 --base-size 4096 4 ...`: `pixel_mismatch x=2044 y=0` - `--check-bc7-tail <copy.cso> 11 --base-size 4 4096 ...`: `pixel_mismatch x=0 y=2044` The same two sub-cases fail with the same first mismatch at `1292d15`, and the other 22 shared sub-cases give the same result on both commits. This is the magnified tail behavior of the old WARP that #313 addressed. #313 merged after this run, so the two sub-cases should pass once this branch includes `main`; I have not rerun that combination. All 29 sub-cases behave as expected on WARP 1.0.22 and on the RTX 3060. ## Full suite | Build | Commit | Passed | Capability skips | Failed | |---|---|---|---|---| | A, in-box | `85095f9` | 124 | 17 | 2: `bc7_draw_warp`, `gpu_alias_lookup_writes_warp` | | A, in-box | `1292d15` | 124 | 17 | the same 2 | | B, Agility 1.620.2 + WARP 1.0.22 | `85095f9` | 138 | 3 | 2: `bvh_wave64_warp`, `wave_shuffle_warp` | | B, Agility 1.620.2 + WARP 1.0.22 | `1292d15` | 138 | 3 | the same 2 | All four failures also fail at the merge base with the same first mismatch, so none is new with this PR. `gpu_alias_lookup_writes_warp` reports `record=1 field=64 expected=0001f5a0 actual=0007d680` on both commits. The two wave tests are #145. Skips, identical on both commits. Build A: `bvh_wave64_hardware`, `wave_shuffle_hardware`, `dxr_query_warp`, `dxr_update_warp`, `dxr_facing_warp`, `bvh_buffer_ops_warp`, `bvh_reads_warp`, `bvh_waves_warp`, `bvh_wave64_warp`, `bvh_hits_warp`, `bvh_differential_warp`, `bvh_atomics_warp`, `bvh_numeric_warp`, `bvh_packed_warp`, `wave_shuffle_warp`, `shader_metadata_probe`, `dxil_retarget_probe`. Build B: `bvh_wave64_hardware`, `shader_metadata_probe`, `dxil_retarget_probe`. One timing note: in the first full run of build B, `bvh_wave64_warp` hit its 45 s timeout on both commits while other GPU jobs were running on this machine. Rerun alone and in a second full run it fails in 0.06 s with the #145 mismatch (`record=0 field=25`). It does not touch this PR's code. Also, `pixel_aot_hardware` took between 24 s and 43 s here against its 60 s timeout, depending on load. ## Adapter dependence in the new path I looked for it on the old WARP specifically, since that adapter has differed from Windows 11 WARP in sampling paths before. I found none: level selection for implicit `Sample` on the 4x4 viewport (mip 1) and for `SampleLevel` at 0 (mip 0) is the same on WARP 10.0.19041, WARP 1.0.22 and the RTX 3060, bit-exact in all 64 channels. As a local diagnostic only, I rebuilt `offscreen_check` with the static sampler changed from `FILTER_MIN_MAG_MIP_POINT` to `FILTER_MIN_MAG_MIP_LINEAR` and repeated the four draws. Results were unchanged on all three backends. That is a weak check, since both mips are solid colors and the implicit LOD is exactly 1.0, so it only shows that linear filtering does not blend levels in this configuration. ## Not checked - Fractional implicit LOD, non-solid mips under linear filtering, anisotropic or biased samplers. - Helper-lane behavior at triangle edges: the fixture is a full-screen triangle with full pixel coverage. - The read-only local check on candidate records described in the PR. I used source-built fixtures only. - AMD and Intel adapters, and Windows 11. - The `clang -cc1as` wrapper form used by the author. _AI-assisted (Claude Code). The Windows results were measured locally._
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!315
No description provided.