compute: lower 2D image_gather4_lz_o #3319

Merged
Leyukaka merged 2 commits from upstream-pr/3319 into main 2026-11-29 15:33:16 +00:00
Leyukaka commented 2026-11-28 09:29:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T09:29:16Z.


Part of #3224 (claimed there). Target branch main.

image_gather4_lz_o is a gather at LOD 0 whose first address VGPR packs a per-lane offset: signed 6-bit x in bits [5:0] and y in bits [13:8] (docs/experiments.md gather notes, tools/pixel_aot.py gather decoder). The direct compute path refused it with "direct image opcode or descriptor modifiers".

Change (src/gfx1013_direct_compute.inl, image_io):

  • Opcode 0x57 is accepted as a gather. The coordinates are the address operands after the offset.
  • The offset VGPR is sign-extended into the two i32 offset operands of dx.op.textureGather: (p << 26) >> 26 for x and (p << 18) >> 26 for y.
    • With the Windows SDK 10.0.26100 DXC, a cs_6_6 HLSL GatherBlue with offsets computed from SV_DispatchThreadID compiles and validates, and emits non-constant i32 offset operands. The direct path also targets cs_6_6.
    • Guest offsets are in [-32, 31], the range of D3D programmable gather offsets (unlike the [-8, 7] immediate sample offsets), so they are passed through unclamped. Bits outside the two fields are ignored.
  • Only the 2D, single-channel, non-compare form is accepted. 3D, arrays, compare, multi-channel DMASK, unnormalized coordinates (UNRM), A16, D16, NSA with more than one extra address word and the LWE/TFE bits keep the existing refusal.

Tests. The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, Release, on main 3f780716 plus this commit.

  • The new native_gather_lz_offset_controls:
    • checks the textureGather call, its coordinate registers and the shift and sign-extension chain, with both NSA and contiguous addresses (the fixture's offset words also set bits outside the two fields);
    • checks that six forms stay refused: 3D, array, compare offset, multi-channel, unnormalized, A16.
  • With main's compile_dxil the positive program is refused with "direct image opcode or descriptor modifiers", so the test fails there.
  • native_gather_lz_offset_hardware passes on the RTX 5080: four lanes with different offsets match all four taps with both address encodings. native_gather_lz_offset_warp reports a capability skip (77).
  • ctest -R "native_|startup_compute|compile_dxil|salu" passes 528 of 529. native_scalar_lds_hardware fails as on main.
  • I measured my local set of 882 captured compute requests with compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests (counts only):
    • 250 compile on main 3f780716, and 254 with this commit;
    • the 4 added programs are the image_gather4_lz_o refusals, 1,004 dispatches in that run;
    • none is lost, and the 250 programs that already compiled produce byte-identical output.
    • The 7 other programs with this refusal stop at a 3D image_store with DMASK 0x9, which this PR does not change.

I did not run source mutations. The failure on main covers removing the change.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5538736702 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T09:29:16Z. --- Part of #3224 (claimed there). Target branch `main`. `image_gather4_lz_o` is a gather at LOD 0 whose first address VGPR packs a per-lane offset: signed 6-bit x in bits [5:0] and y in bits [13:8] (`docs/experiments.md` gather notes, `tools/pixel_aot.py` gather decoder). The direct compute path refused it with "direct image opcode or descriptor modifiers". **Change** (`src/gfx1013_direct_compute.inl`, `image_io`): - Opcode `0x57` is accepted as a gather. The coordinates are the address operands after the offset. - The offset VGPR is sign-extended into the two i32 offset operands of `dx.op.textureGather`: `(p << 26) >> 26` for x and `(p << 18) >> 26` for y. - With the Windows SDK 10.0.26100 DXC, a `cs_6_6` HLSL `GatherBlue` with offsets computed from `SV_DispatchThreadID` compiles and validates, and emits non-constant `i32` offset operands. The direct path also targets `cs_6_6`. - Guest offsets are in [-32, 31], the range of D3D programmable gather offsets (unlike the [-8, 7] immediate sample offsets), so they are passed through unclamped. Bits outside the two fields are ignored. - Only the 2D, single-channel, non-compare form is accepted. 3D, arrays, compare, multi-channel DMASK, unnormalized coordinates (UNRM), A16, D16, NSA with more than one extra address word and the LWE/TFE bits keep the existing refusal. **Tests.** The setup was Windows 11 with an NVIDIA GeForce RTX 5080 and DXC from the Windows SDK 10.0.26100, Release, on `main` `3f780716` plus this commit. - The new `native_gather_lz_offset_controls`: - checks the `textureGather` call, its coordinate registers and the shift and sign-extension chain, with both NSA and contiguous addresses (the fixture's offset words also set bits outside the two fields); - checks that six forms stay refused: 3D, array, compare offset, multi-channel, unnormalized, A16. - With `main`'s `compile_dxil` the positive program is refused with "direct image opcode or descriptor modifiers", so the test fails there. - `native_gather_lz_offset_hardware` passes on the RTX 5080: four lanes with different offsets match all four taps with both address encodings. `native_gather_lz_offset_warp` reports a capability skip (77). - `ctest -R "native_|startup_compute|compile_dxil|salu"` passes 528 of 529. `native_scalar_lds_hardware` fails as on `main`. - I measured my local set of 882 captured compute requests with `compile_dxil --jobs 8 gfx1013-direct-cs@36 --requests` (counts only): - 250 compile on `main` `3f780716`, and 254 with this commit; - the 4 added programs are the `image_gather4_lz_o` refusals, 1,004 dispatches in that run; - none is lost, and the 250 programs that already compiled produce byte-identical output. - The 7 other programs with this refusal stop at a 3D `image_store` with DMASK `0x9`, which this PR does not change. I did not run source mutations. The failure on `main` covers removing the change. AI-assisted.
tedin7 commented 2026-11-28 11:06:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-28T11:06:28Z.

Review: COMMENTED


Review of head bb3f07ef (the PR's own change is 87296ce1; the new head only merges current main). Not merged: the PR's own D3D12 WARP readback test fails on Windows Server 2025.

What I checked:

  • src/gfx1013_direct_compute.inl: opcode 0x57 for image_gather4_lz_o, the x field in bits [5:0] and y in [13:8] of the first address VGPR, sign extension by shl/ashr 26, and the refusals (3D, array, compare, multi-channel, unnormalized, A16) look right against the public RDNA2 MIMG description. The controls test matches that.

Result on Windows Server 2025, D3D12 WARP 1.0.22, -R '^native_gather_(lz_offset_(controls|warp)|lod_(controls|warp))$' (targets compile_dxil,offscreen_check):

  • dev: native_gather_lz_offset_controls passed, native_gather_lod_controls passed, native_gather_lz_offset_warp FAILED. Release: same.
  • The failing test reports compared_words=320 mismatches=16, the first one word=0 expected=3f1020c4 actual=c5c5c5c5. All four lanes times four taps read back as the fill pattern, so the gather with a non-constant offset did not write its result on WARP (debug layer: 0 errors, 0 warnings).
  • native_gather_lod_warp does not exist in this tree, so only the controls ran for the sibling.

What is needed: either the lowering or the test expectation must hold on WARP, or the WARP leg must skip cleanly (exit 77) when the adapter lacks the capability, with the real-GPU leg staying as the guard. As it stands the PR's own WARP test is red, so I did not merge. Mutation runs (swapped y shift, dropped address-register shift) also fail the controls test, so the controls do guard the encoding.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6097381703 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#pullrequestreview-6097381703). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-28T11:06:28Z. **Review:** COMMENTED --- Review of head `bb3f07ef` (the PR's own change is `87296ce1`; the new head only merges current `main`). Not merged: the PR's own D3D12 WARP readback test fails on Windows Server 2025. What I checked: - `src/gfx1013_direct_compute.inl`: opcode 0x57 for `image_gather4_lz_o`, the x field in bits [5:0] and y in [13:8] of the first address VGPR, sign extension by `shl`/`ashr 26`, and the refusals (3D, array, compare, multi-channel, unnormalized, A16) look right against the public RDNA2 MIMG description. The controls test matches that. Result on Windows Server 2025, D3D12 WARP 1.0.22, `-R '^native_gather_(lz_offset_(controls|warp)|lod_(controls|warp))$'` (targets `compile_dxil,offscreen_check`): - dev: `native_gather_lz_offset_controls` passed, `native_gather_lod_controls` passed, `native_gather_lz_offset_warp` FAILED. Release: same. - The failing test reports `compared_words=320 mismatches=16`, the first one `word=0 expected=3f1020c4 actual=c5c5c5c5`. All four lanes times four taps read back as the fill pattern, so the gather with a non-constant offset did not write its result on WARP (debug layer: 0 errors, 0 warnings). - `native_gather_lod_warp` does not exist in this tree, so only the controls ran for the sibling. What is needed: either the lowering or the test expectation must hold on WARP, or the WARP leg must skip cleanly (exit 77) when the adapter lacks the capability, with the real-GPU leg staying as the guard. As it stands the PR's own WARP test is red, so I did not merge. Mutation runs (swapped y shift, dropped address-register shift) also fail the controls test, so the controls do guard the encoding. AI-assisted; commands listed were executed locally.
Leyukaka commented 2026-11-28 11:12:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-28T11:12:30Z.


I can't reproduce this here: on Windows 11 build 26300 the WARP leg exits 77 (skip: shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wave), and the RTX 5080 leg passes.

16 mismatches is the number of result words (4 lanes x 4 taps), and word 0 still holds the fill value 0xc5c5c5c5, so on WARP lane 0's gather result was never stored or the dispatch did not run. The harness prints only the first mismatch, so the other 15 are not shown.

Could you run ctest -R '^native_gather_lod_cs_warp$' on the same machine? It uses the same --shader-wave32 gate, compute texture case and mip-1 view, with constant offsets. If it fails too, the non-constant offset is not the cause. The stdout and stderr of the failing run would also help. I'd rather not turn the WARP leg into a skip before the cause is known.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7238397890 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#issuecomment-7238397890). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-28T11:12:30Z. --- I can't reproduce this here: on Windows 11 build 26300 the WARP leg exits 77 (`skip: shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wave`), and the RTX 5080 leg passes. 16 mismatches is the number of result words (4 lanes x 4 taps), and word 0 still holds the fill value `0xc5c5c5c5`, so on WARP lane 0's gather result was never stored or the dispatch did not run. The harness prints only the first mismatch, so the other 15 are not shown. Could you run `ctest -R '^native_gather_lod_cs_warp$'` on the same machine? It uses the same `--shader-wave32` gate, compute texture case and mip-1 view, with constant offsets. If it fails too, the non-constant offset is not the cause. The stdout and stderr of the failing run would also help. I'd rather not turn the WARP leg into a skip before the cause is known.
Leyukaka commented 2026-11-29 03:07:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T03:07:48Z.


Since the review of bb3f07ef: rebased onto main as one commit, da296e99, with the same lowering and tests; the WARP failure is not addressed yet. Still open: on Server 2025, the result of ctest -R '^native_gather_lod_cs_warp$' (constant offsets, same wave32 gate) and the stdout and stderr of the failing native_gather_lz_offset_warp would separate the offset path from the WARP wave32 path.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7249858884 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#issuecomment-7249858884). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T03:07:48Z. --- Since the review of `bb3f07ef`: rebased onto `main` as one commit, `da296e99`, with the same lowering and tests; the WARP failure is not addressed yet. Still open: on Server 2025, the result of `ctest -R '^native_gather_lod_cs_warp$'` (constant offsets, same wave32 gate) and the stdout and stderr of the failing `native_gather_lz_offset_warp` would separate the offset path from the WARP wave32 path.
JohnConnorNPC commented 2026-11-29 12:55:24 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T12:55:24Z.


Review of da296e99 against main 77d1ba4d. Verdict: hold. It merges cleanly (git merge-tree --write-tree origin/main da296e99 → rc 0), but no WARP run of the PR's own readback test has passed.

MUST

  1. native_gather_lz_offset_warp is red on Windows Server 2025 (compared_words=320 mismatches=16, word 0 actual=c5c5c5c5, from tedin7's review of bb3f07ef). No run since has passed, and da296e99 doesn't change the lowering. The default launcher path makes this a blocker: since #3449 runs use the native path (X2W_NATIVE_SHADERS_ONLY=1), so this lowering replaces a refusal there. A gather that silently leaves its destination unwritten is worse than the refusal. Either a passing WARP run, or a cause showing it is WARP-only (the native_gather_lod_cs_warp comparison Leyukaka asked for) with a clean 77 for that adapter, would clear it.

SHOULD

  1. CI selects neither new test: a re.search of the pr preset filter → False for native_gather_lz_offset_controls and native_gather_lz_offset_warp. The controls leg needs only compile_dxil and DXC, so it could run in CI.

What I checked by reading, and it agrees with the repo mapping:

  • MIMG op 0x57 is image_gather4_lz_o (tools/disasm_rdna2.py: 0x57: ("image_gather4_lz_o", True, 1)).
  • The call is @dx.op.textureGather.f32 with i32 73 (the test asserts args[0] == 'i32 73'), and the base-level sampler path is the same as op 71.
  • The offsets are sign-extended from bits [5:0] and [13:8] with shl 26/shl 18 then ashr 26.
  • The first address VGPR is the offset word (coordinate(j + unsigned(bias || compare || gather_offset))).

Nothing built or run here.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7256160012 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#issuecomment-7256160012). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T12:55:24Z. --- Review of `da296e99` against main `77d1ba4d`. **Verdict: hold.** It merges cleanly (`git merge-tree --write-tree origin/main da296e99` → rc 0), but no WARP run of the PR's own readback test has passed. **MUST** 1. `native_gather_lz_offset_warp` is red on Windows Server 2025 (`compared_words=320 mismatches=16`, word 0 `actual=c5c5c5c5`, from tedin7's review of `bb3f07ef`). No run since has passed, and `da296e99` doesn't change the lowering. The default launcher path makes this a blocker: since #3449 runs use the native path (`X2W_NATIVE_SHADERS_ONLY=1`), so this lowering replaces a refusal there. A gather that silently leaves its destination unwritten is worse than the refusal. Either a passing WARP run, or a cause showing it is WARP-only (the `native_gather_lod_cs_warp` comparison Leyukaka asked for) with a clean 77 for that adapter, would clear it. **SHOULD** 1. CI selects neither new test: a `re.search` of the `pr` preset filter → `False` for `native_gather_lz_offset_controls` and `native_gather_lz_offset_warp`. The controls leg needs only `compile_dxil` and DXC, so it could run in CI. What I checked by reading, and it agrees with the repo mapping: - MIMG op `0x57` is `image_gather4_lz_o` (`tools/disasm_rdna2.py`: `0x57: ("image_gather4_lz_o", True, 1)`). - The call is `@dx.op.textureGather.f32` with `i32 73` (the test asserts `args[0] == 'i32 73'`), and the base-level sampler path is the same as op 71. - The offsets are sign-extended from bits [5:0] and [13:8] with `shl 26`/`shl 18` then `ashr 26`. - The first address VGPR is the offset word (`coordinate(j + unsigned(bias || compare || gather_offset))`). Nothing built or run here. AI-assisted.
Leyukaka commented 2026-11-29 15:24:32 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T15:24:32Z.


Re the hold on da296e99: new head 8cfd018c. It changes only tests/native_gather_lz_offset_check.py (+15/-6); the lowering is the same as in da296e99.

What changed. The readback test now dispatches one full 32-thread wave instead of 4 threads. Lanes 4-31 repeat the offsets of lanes 0-3 (lane & 3), and each lane writes its own 16-byte slot. The reference is the 4 lanes x 4 taps repeated 8 times (128 words) followed by 192 sentinel words; all 320 words are compared, for both address encodings.

Runs. Windows Sandbox with no network adapter, dev preset with -DX2W_WITH_OPUS=OFF, full build, on a Windows 11 build 26300 host. WARP is 1.0.22 from the Microsoft.Direct3D.WARP NuGet package, placed next to offscreen_check.exe (adapter=Microsoft Basic Render Driver, driver=1.0.22.0). The hardware adapter is an NVIDIA GeForce RTX 5080, driver 32.0.16.2101.

  1. da296e99, ctest -R '^native_gather_lz_offset_': _controls passed, _hardware passed, _warp failed with groups=1 compared_words=320 mismatches=16, word=0 expected=3f1020c4 actual=c5c5c5c5. This reproduces the Server 2025 result. A local diagnostic build (not pushed) printed all 16 result words as c5c5c5c5 for both address encodings, and got the same 16 mismatches with a constant-offset gather (diag immediate-zero) and with the offset register forced to zero (diag vgpr-zero). Both diagnostic lines give mismatches=0 on the RTX 5080.
  2. main 5de0b114, ctest -R '^startup_compute_dispatch_native_': _hardware passed, _warp failed with word=0 got=c5c5c5c5 expected=00000400 (288 words differ). That test has no gather. On the same WARP, #3320's native_ds_bpermute_warp, which runs 32 threads per group, passes.
  3. 8cfd018c, ctest -R '^native_gather_lz_offset_': _controls, _warp and _hardware all passed (3/3); _warp and _hardware print All 32 lanes matched all four blue taps with both address encodings.

With the offset removed from the lowering (ashr result replaced by 0), _hardware at 8cfd018c fails with mismatches=112; with the two shift amounts swapped it fails with mismatches=128.

Cause. WARP-only, and not the offset lowering: it is the partial wave under WaveSize(32) tracked in #3160. In src/gfx1013_direct_compute.inl on 5de0b114, initialize() sets EXEC from waveActiveBallot(true) and lane_bit = 1 << waveGetLaneIndex() (lines 280-287), active() is (EXEC & lane_bit) != 0 (176-180), and every buffer store branches on active() (863-866). If the ballot of a 4-thread group does not contain the lane's own bit, no lane stores and the buffer keeps its fill, which is what runs 1 and 2 show. With a full wave the test passes. tests/native_int32_minmax3_check.py on main already uses full waves for the same reason.

Not covered.

  • The ballot and lane-index values WARP returns for a partial wave were not read back. The cause is inferred from the runs above and from the code.
  • native_gather_lz_offset_controls checks the DXIL of the 4-thread shader only. The 32-thread shader is checked by the readback compare.
  • Not rerun on Windows Server 2025.
  • Partial waves still fail on WARP 1.0.22 with this lowering, as they do on main; this PR does not change that.
  • The CI filter (SHOULD 1) is not changed in this push.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7258065379 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#issuecomment-7258065379). Originally posted by [Leyukaka](https://github.com/Leyukaka) on 2026-11-29T15:24:32Z. --- Re the hold on `da296e99`: new head `8cfd018c`. It changes only `tests/native_gather_lz_offset_check.py` (+15/-6); the lowering is the same as in `da296e99`. **What changed.** The readback test now dispatches one full 32-thread wave instead of 4 threads. Lanes 4-31 repeat the offsets of lanes 0-3 (`lane & 3`), and each lane writes its own 16-byte slot. The reference is the 4 lanes x 4 taps repeated 8 times (128 words) followed by 192 sentinel words; all 320 words are compared, for both address encodings. **Runs.** Windows Sandbox with no network adapter, `dev` preset with `-DX2W_WITH_OPUS=OFF`, full build, on a Windows 11 build 26300 host. WARP is 1.0.22 from the `Microsoft.Direct3D.WARP` NuGet package, placed next to `offscreen_check.exe` (`adapter=Microsoft Basic Render Driver`, `driver=1.0.22.0`). The hardware adapter is an NVIDIA GeForce RTX 5080, driver 32.0.16.2101. 1. `da296e99`, `ctest -R '^native_gather_lz_offset_'`: `_controls` passed, `_hardware` passed, `_warp` failed with `groups=1 compared_words=320 mismatches=16`, `word=0 expected=3f1020c4 actual=c5c5c5c5`. This reproduces the Server 2025 result. A local diagnostic build (not pushed) printed all 16 result words as `c5c5c5c5` for both address encodings, and got the same 16 mismatches with a constant-offset gather (`diag immediate-zero`) and with the offset register forced to zero (`diag vgpr-zero`). Both diagnostic lines give `mismatches=0` on the RTX 5080. 2. main `5de0b114`, `ctest -R '^startup_compute_dispatch_native_'`: `_hardware` passed, `_warp` failed with `word=0 got=c5c5c5c5 expected=00000400 (288 words differ)`. That test has no gather. On the same WARP, #3320's `native_ds_bpermute_warp`, which runs 32 threads per group, passes. 3. `8cfd018c`, `ctest -R '^native_gather_lz_offset_'`: `_controls`, `_warp` and `_hardware` all passed (3/3); `_warp` and `_hardware` print `All 32 lanes matched all four blue taps with both address encodings`. With the offset removed from the lowering (`ashr` result replaced by `0`), `_hardware` at `8cfd018c` fails with `mismatches=112`; with the two shift amounts swapped it fails with `mismatches=128`. **Cause.** WARP-only, and not the offset lowering: it is the partial wave under `WaveSize(32)` tracked in #3160. In `src/gfx1013_direct_compute.inl` on `5de0b114`, `initialize()` sets EXEC from `waveActiveBallot(true)` and `lane_bit = 1 << waveGetLaneIndex()` (lines 280-287), `active()` is `(EXEC & lane_bit) != 0` (176-180), and every buffer store branches on `active()` (863-866). If the ballot of a 4-thread group does not contain the lane's own bit, no lane stores and the buffer keeps its fill, which is what runs 1 and 2 show. With a full wave the test passes. `tests/native_int32_minmax3_check.py` on main already uses full waves for the same reason. **Not covered.** - The ballot and lane-index values WARP returns for a partial wave were not read back. The cause is inferred from the runs above and from the code. - `native_gather_lz_offset_controls` checks the DXIL of the 4-thread shader only. The 32-thread shader is checked by the readback compare. - Not rerun on Windows Server 2025. - Partial waves still fail on WARP 1.0.22 with this lowering, as they do on main; this PR does not change that. - The CI filter (SHOULD 1) is not changed in this push.
JohnConnorNPC commented 2026-11-29 15:33:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T15:33:12Z.


Re-review at 8cfd018c (delta vs da296e99: tests/native_gather_lz_offset_check.py only, +15/-6; lowering unchanged).

Our MUST (no green WARP run) is resolved:

  • The run report at 8cfd018c has _controls, _warp (WARP 1.0.22) and _hardware passing, with the adapter, driver, Windows build and commit given, plus two hardware mutations (offset dropped: mismatches=112; shifts swapped: mismatches=128).
  • The full-wave dispatch matches main's precedent. tests/native_int32_minmax3_check.py on main says "Full physical waves avoid the WARP 1.0.22 partial-wave ballot issue (#3160)". The failure also shows on main's startup_compute_dispatch_native_warp, which has no gather, so it is not caused by this lowering.
  • The new encodings read correctly. 0x1b << 25 | offset << 17 | 131 is v_and_b32 v[offset], 3, v0 (VOP2 op 0x1b, src0 inline 3). The mul now reads v[offset]. v3 = v0 << 4 is computed before the AND, so each of the 32 lanes stores to its own slot: 128 data words plus 192 sentinels = 320.

Still open, not blocking: the pr preset runs none of the native_gather_lz_offset_* tests (earlier SHOULD). The run report does not say whether the debug layer was on (the test asserts 0 errors only when it is).

Trial merge onto main 5de0b114: clean. CI: Windows, gfx1013 and Linux pass. Merging.

AI-assisted review.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7258180328 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3319#issuecomment-7258180328). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T15:33:12Z. --- Re-review at `8cfd018c` (delta vs `da296e99`: `tests/native_gather_lz_offset_check.py` only, +15/-6; lowering unchanged). Our MUST (no green WARP run) is resolved: - The run report at `8cfd018c` has `_controls`, `_warp` (WARP 1.0.22) and `_hardware` passing, with the adapter, driver, Windows build and commit given, plus two hardware mutations (offset dropped: `mismatches=112`; shifts swapped: `mismatches=128`). - The full-wave dispatch matches main's precedent. `tests/native_int32_minmax3_check.py` on main says "Full physical waves avoid the WARP 1.0.22 partial-wave ballot issue (#3160)". The failure also shows on main's `startup_compute_dispatch_native_warp`, which has no gather, so it is not caused by this lowering. - The new encodings read correctly. `0x1b << 25 | offset << 17 | 131` is `v_and_b32 v[offset], 3, v0` (VOP2 op 0x1b, src0 inline 3). The mul now reads `v[offset]`. `v3 = v0 << 4` is computed before the AND, so each of the 32 lanes stores to its own slot: 128 data words plus 192 sentinels = 320. Still open, not blocking: the `pr` preset runs none of the `native_gather_lz_offset_*` tests (earlier SHOULD). The run report does not say whether the debug layer was on (the test asserts 0 errors only when it is). Trial merge onto main `5de0b114`: clean. CI: Windows, gfx1013 and Linux pass. Merging. AI-assisted review.
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!3319
No description provided.