pixel_aot_hardware: wrong v_dot4_i32_i8 clamp results in check_dot_draw on Intel UHD Graphics #730

Closed
opened 2026-11-22 23:58:30 +00:00 by romn4rch · 2 comments
romn4rch commented 2026-11-22 23:58:30 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-22T23:58:30Z.


Commit or build

787ace7 (main at the time of the run). The dot helpers in tools/pixel_aot.py, DOT_BODY and check_dot_draw are unchanged on current main (434fabe).

Reproduction

$env:XBOX2WINDOWS_ADAPTER = 'Intel'
ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V

Expected behavior

All four dot cases pass, as they do on the NVIDIA GeForce RTX 3050 6GB Laptop GPU and on WARP on the same host.

Observed behavior

In 3 of 3 runs, check_dot_draw reports ['pass', 'mismatch', 'mismatch', 'mismatch']. Only channel 2 differs:

Case Channel 2 expected Intel
1 415 225
2 125 282
3 294 93

Channel 2 is nibble_dot(v25, 0x12341234) + nibble_dot(v26, 0x43214321). Here v25 is v_dot4_i32_i8 v25, v19, v20, v21 clamp and v26 is v_dot4_u32_u8. v26 is exact on this adapter (see the isolated probes below). The three values therefore correspond to v25 = 80007df4, 7fffc012 and 80000000 instead of 7fffffff, 80000000 and fffffe04. Cases 1 and 2 are not saturated. Case 3 is saturated even though -512 + 4 is in range.

pixel_aot_hardware stops at the first failing check. I also ran check_render(..., core_only=True) locally with each named check_* wrapped so that a failure is recorded and the run continues. On Intel, check_dot_draw is the only failing check. The other 13 pass: dpp_int32, dpp, vop3p, bitwise, fma_mix, pk_int16, narrow, mode_register, movk, half, rgb_sample, trig and affine_lod.

Isolated probes (local only). Each probe is v_mov_b32 of s44..s47 into v18..v21, one dot instruction into v25, and v_cvt_f32_ubyte0..3 of v25 into the four channels. It goes through the same translate, compile_shader and --check-pixel-batch path. The inputs are the four DOT_SETS and five extra accumulator/sum combinations (9 sets):

Probe Intel NVIDIA WARP
v_dot4_i32_i8 ... clamp with the current helper 9/9 exact 9/9 9/9
v_dot4_i32_i8 without clamp; v_dot4_u32_u8 and v_dot8_i32_i4 with and without clamp; v_dot8_u32_u4, v_dot2_i32_i16 and v_dot2_u32_u16 with clamp 9/9 exact each 9/9 each 9/9 each
v_dot4_i32_i8 ... clamp with the helper rewritten as a 32-bit overflow test (below) 7/9: sets 1 and 2 come back unsaturated (80007df4, 7fffc012) 9/9 9/9
v_dot8_i32_i4 ... clamp with the same rewrite 9/9 exact 9/9 9/9
full dot program with both rewrites case 3 passes; cases 1 and 2 still give 225 and 282 pass pass

The rewrite that was tested:

uint r = c + asuint(sum);
bool overflow = ((c ^ r) & (asuint(sum) ^ r)) >= 0x80000000u;
return (sat && overflow) ? (c >= 0x80000000u ? 0x80000000u : 0x7fffffffu) : r;

The five mutation controls of check_dot_draw were detected with both helper versions on all three backends. The DXIL listings of the full program are byte-identical across the three runs (DXC 1.9.2602.17). The 32-bit adds that can wrap carry no nsw flag. The current helper, as compiled in the full program (comments added):

%170 = add i32 %169, %164       ; byte-product sum
%171 = add i32 %170, %99        ; sum + c, the low word
%172 = ashr i32 %170, 31        ; sign word of sum
%173 = add nsw i32 %172, %108   ; plus the sign word of c
%174 = icmp ult i32 %171, %99   ; carry

The rewrite, as compiled in the full program:

%171 = add i32 %170, %99
%172 = xor i32 %171, %99
%173 = xor i32 %171, %170
%174 = and i32 %172, %173
%175 = icmp slt i32 %174, 0
%178 = select i1 %175, i32 %177, i32 %171

Inference, not a confirmed cause. Every Intel result above matches one substitution: wherever the byte-product sum is used next to sum + c, the driver behaves as if it used sum + c.

  • In the current helper, the sign word of sum becomes the sign word of sum + c. That gives exactly 80007df4, 7fffc012 and 80000000 for cases 1–3.
  • In the rewrite, asuint(sum) ^ r becomes 0, so the overflow test is never true. That gives the two unsaturated values and leaves the 7 non-overflowing sets correct.

The isolated probe of the current helper is not affected, so the substitution depends on the surrounding code.

Possible workaround, not yet run on hardware. The 4 × 8-bit product sum lies in [-65024, 65536], and the 8 × 4-bit sum in [-448, 512]. Saturation can therefore be decided from c and r alone, without a second use of sum:

uint r = c + asuint(sum);
if (sat && asint(c) >= 0x40000000 && asint(r) < 0) return 0x7fffffffu;
if (sat && asint(c) < -0x40000000 && asint(r) >= 0) return 0x80000000u;
return r;

In Python, this matched the exact reference for the 9 probe sets and for 19,565 random and boundary cases. I plan to run it on the same three backends: the isolated probes, and the full program with its five mutation controls.

If it passes everywhere, would a shader: PR that changes v_dot4_i32_i8 and v_dot8_i32_i4 this way be welcome? Or should Intel be recorded as an adapter exception in docs/experiments.md? v_dot2_i32_i16 would keep the 64-bit pair, because its sum can reach 2^31.

Environment

  • Windows 11 build 26300.10075, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.9.2602.17, CMake 4.5.1, Python 3.14.7.
  • Adapter under test: Intel(R) UHD Graphics (8086:468B), driver 32.0.101.7026.
  • Controls on the same host: NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC, driver 32.0.16.2114) and WARP 10.0.26100.10068.
  • Debug layer: unavailable on all three (Graphics Tools not installed).

Checklist

  • I reproduced this on a source-built input.
  • I did not include game files, dumps, distribution links or credentials.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6549488451 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/736). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-22T23:58:30Z. --- ### Commit or build `787ace7` (`main` at the time of the run). The dot helpers in `tools/pixel_aot.py`, `DOT_BODY` and `check_dot_draw` are unchanged on current `main` (`434fabe`). ### Reproduction ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V ``` ### Expected behavior All four `dot` cases pass, as they do on the NVIDIA GeForce RTX 3050 6GB Laptop GPU and on WARP on the same host. ### Observed behavior In 3 of 3 runs, `check_dot_draw` reports `['pass', 'mismatch', 'mismatch', 'mismatch']`. Only channel 2 differs: | Case | Channel 2 expected | Intel | |---|---|---| | 1 | 415 | 225 | | 2 | 125 | 282 | | 3 | 294 | 93 | Channel 2 is `nibble_dot(v25, 0x12341234) + nibble_dot(v26, 0x43214321)`. Here `v25` is `v_dot4_i32_i8 v25, v19, v20, v21 clamp` and `v26` is `v_dot4_u32_u8`. `v26` is exact on this adapter (see the isolated probes below). The three values therefore correspond to `v25` = `80007df4`, `7fffc012` and `80000000` instead of `7fffffff`, `80000000` and `fffffe04`. Cases 1 and 2 are not saturated. Case 3 is saturated even though `-512 + 4` is in range. `pixel_aot_hardware` stops at the first failing check. I also ran `check_render(..., core_only=True)` locally with each named `check_*` wrapped so that a failure is recorded and the run continues. On Intel, `check_dot_draw` is the only failing check. The other 13 pass: `dpp_int32`, `dpp`, `vop3p`, `bitwise`, `fma_mix`, `pk_int16`, `narrow`, `mode_register`, `movk`, `half`, `rgb_sample`, `trig` and `affine_lod`. **Isolated probes (local only).** Each probe is `v_mov_b32` of s44..s47 into v18..v21, one dot instruction into v25, and `v_cvt_f32_ubyte0..3` of v25 into the four channels. It goes through the same `translate`, `compile_shader` and `--check-pixel-batch` path. The inputs are the four `DOT_SETS` and five extra accumulator/sum combinations (9 sets): | Probe | Intel | NVIDIA | WARP | |---|---|---|---| | `v_dot4_i32_i8 ... clamp` with the current helper | 9/9 exact | 9/9 | 9/9 | | `v_dot4_i32_i8` without clamp; `v_dot4_u32_u8` and `v_dot8_i32_i4` with and without clamp; `v_dot8_u32_u4`, `v_dot2_i32_i16` and `v_dot2_u32_u16` with clamp | 9/9 exact each | 9/9 each | 9/9 each | | `v_dot4_i32_i8 ... clamp` with the helper rewritten as a 32-bit overflow test (below) | 7/9: sets 1 and 2 come back unsaturated (`80007df4`, `7fffc012`) | 9/9 | 9/9 | | `v_dot8_i32_i4 ... clamp` with the same rewrite | 9/9 exact | 9/9 | 9/9 | | full `dot` program with both rewrites | case 3 passes; cases 1 and 2 still give 225 and 282 | pass | pass | The rewrite that was tested: ```hlsl uint r = c + asuint(sum); bool overflow = ((c ^ r) & (asuint(sum) ^ r)) >= 0x80000000u; return (sat && overflow) ? (c >= 0x80000000u ? 0x80000000u : 0x7fffffffu) : r; ``` The five mutation controls of `check_dot_draw` were detected with both helper versions on all three backends. The DXIL listings of the full program are byte-identical across the three runs (DXC 1.9.2602.17). The 32-bit adds that can wrap carry no `nsw` flag. The current helper, as compiled in the full program (comments added): ```llvm %170 = add i32 %169, %164 ; byte-product sum %171 = add i32 %170, %99 ; sum + c, the low word %172 = ashr i32 %170, 31 ; sign word of sum %173 = add nsw i32 %172, %108 ; plus the sign word of c %174 = icmp ult i32 %171, %99 ; carry ``` The rewrite, as compiled in the full program: ```llvm %171 = add i32 %170, %99 %172 = xor i32 %171, %99 %173 = xor i32 %171, %170 %174 = and i32 %172, %173 %175 = icmp slt i32 %174, 0 %178 = select i1 %175, i32 %177, i32 %171 ``` **Inference, not a confirmed cause.** Every Intel result above matches one substitution: wherever the byte-product sum is used next to `sum + c`, the driver behaves as if it used `sum + c`. - In the current helper, the sign word of `sum` becomes the sign word of `sum + c`. That gives exactly `80007df4`, `7fffc012` and `80000000` for cases 1–3. - In the rewrite, `asuint(sum) ^ r` becomes 0, so the overflow test is never true. That gives the two unsaturated values and leaves the 7 non-overflowing sets correct. The isolated probe of the current helper is not affected, so the substitution depends on the surrounding code. **Possible workaround, not yet run on hardware.** The 4 × 8-bit product sum lies in [-65024, 65536], and the 8 × 4-bit sum in [-448, 512]. Saturation can therefore be decided from `c` and `r` alone, without a second use of `sum`: ```hlsl uint r = c + asuint(sum); if (sat && asint(c) >= 0x40000000 && asint(r) < 0) return 0x7fffffffu; if (sat && asint(c) < -0x40000000 && asint(r) >= 0) return 0x80000000u; return r; ``` In Python, this matched the exact reference for the 9 probe sets and for 19,565 random and boundary cases. I plan to run it on the same three backends: the isolated probes, and the full program with its five mutation controls. If it passes everywhere, would a `shader:` PR that changes `v_dot4_i32_i8` and `v_dot8_i32_i4` this way be welcome? Or should Intel be recorded as an adapter exception in `docs/experiments.md`? `v_dot2_i32_i16` would keep the 64-bit pair, because its sum can reach 2^31. ### Environment - Windows 11 build 26300.10075, MSVC 19.44.35230, SDK 10.0.26100, DXC 1.9.2602.17, CMake 4.5.1, Python 3.14.7. - Adapter under test: Intel(R) UHD Graphics (`8086:468B`), driver `32.0.101.7026`. - Controls on the same host: NVIDIA GeForce RTX 3050 6GB Laptop GPU (`10DE:25EC`, driver `32.0.16.2114`) and WARP `10.0.26100.10068`. - Debug layer: unavailable on all three (Graphics Tools not installed). ### Checklist - [x] I reproduced this on a source-built input. - [x] I did not include game files, dumps, distribution links or credentials. _AI-assisted._
R0Y00 commented 2026-11-24 06:48:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T00:26:56Z.


Yes, a focused PR is welcome if the bounded overflow check passes the full dot program and the isolated probes on Intel, NVIDIA and WARP. Keep the existing wrapped results, saturation endpoints and mutation controls, and add an input just inside each signed endpoint. Please report the exact shader and commit for the comparison. Keep the 16-bit product helper unchanged. The observed result is a context-dependent mismatch. The proposed driver substitution can stay as a hypothesis.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7088357316 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/736#issuecomment-7088357316). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T00:26:56Z. --- Yes, a focused PR is welcome if the bounded overflow check passes the full dot program and the isolated probes on Intel, NVIDIA and WARP. Keep the existing wrapped results, saturation endpoints and mutation controls, and add an input just inside each signed endpoint. Please report the exact shader and commit for the comparison. Keep the 16-bit product helper unchanged. The observed result is a context-dependent mismatch. The proposed driver substitution can stay as a hypothesis.
romn4rch commented 2026-11-24 06:49:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T14:25:10Z.


Follow-up: the bounded 32-bit check passes the full dot program and the isolated probes on Intel, NVIDIA and WARP

Source: 34d03c7 (main at the time of the run), one build, one host. The Intel driver is now 32.0.101.7092 (the first report used 32.0.101.7026). The current helper still fails there with the same values.

Change under test. In tools/pixel_aot.py, v_dot4_i32_i8 and v_dot8_i32_i4 end with the bounded check from the first report instead of dot_i64_add / dot_i64_sat:

uint r = c + asuint(sum);
if (sat && asint(c) >= 0x40000000 && asint(r) < 0) return 0x7fffffffu;
if (sat && asint(c) < -0x40000000 && asint(r) >= 0) return 0x80000000u;
return r;

v_dot2_i32_i16 and the three unsigned forms keep the 64-bit pair. In tests/pixel_aot_check.py, DOT_SETS keeps Sets 1–4 and the five mutation controls, and gains one input just inside each signed endpoint:

  • Set 5, (pack_f16_pair(-0.5, 1.0), 0x00070007, 0x0003ffff, 0x7ffffff0): v_dot2_i32_i16, v_dot4_i32_i8 and v_dot8_i32_i4 give 0x7ffffffe.
  • Set 6, (pack_f16_pair(-0.5, 1.0), 0x00050005, 0xfffeffff, 0x80000010): the same three give 0x80000001.

Exact shader. The program check_dot_draw draws, translate(with_constants(DOT_BODY)), compiled by compile_shader with the Windows SDK DXC 1.9.2602.17. The sets are constants, so the shader does not depend on them.

Helper HLSL SHA-256 (as translated, LF) CSO SHA-256 CSO bytes
current 54b6fae38df4efe26557ad12e622c0c445e1533612bf27a7c155e5f35c4428e1 c76adeeebe88facaae0d078024f9670c6c0c9d9d148d9406c925fa9ca217a382 5988
bounded check 0d9b896dd5ac5083b7c962cccd2eac0d29a3f564cb82840e25474fd387082c84 f4a67ad94bb23d463aa0698be2b913604a8db12d49e41dbde847d96c73c4a99e 5960

At current main (58da18a) the dot helpers, DOT_BODY and DOT_SETS are unchanged, and the same translation gives byte-identical HLSL for both helpers (checked offline).

1. CTest, with XBOX2WINDOWS_ADAPTER set to Intel or NVIDIA:

ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V
ctest --preset dev --no-tests=error -R '^pixel_aot_warp$' -j 1 -V
Source Intel UHD Graphics NVIDIA RTX 3050 Laptop WARP
34d03c7 Failed: check_dot_draw ['pass', 'mismatch', 'mismatch', 'mismatch'], channel 2 = 225, 282, 93 Passed, 3 of 3 runs Passed
34d03c7 + change Passed, 3 of 3 runs (38.66, 38.61, 39.34 s) Passed (55.96 s) Passed (19.57 s)

2. Every draw-core check on Intel. As in the first report, check_render(..., core_only=True) ran with each named check_* wrapped so that a failure is recorded and the run continues. On 34d03c7, check_dot_draw is the only one of the 15 checks that fails. With the change, all 15 pass.

3. Full dot program through the same translate, compile_shader and --check-pixel-batch path, all six sets, Intel twice:

Helper Intel (2 of 2 runs) NVIDIA WARP
current cases 1–3 mismatch (channel 2 = 225, 282, 93); cases 0, 4 and 5 pass 6/6 6/6
bounded check 6/6 6/6 6/6

All five mutation controls are detected with both helpers on all three adapters.

4. Isolated probes, built as in the first report. Each probe gets 11 inputs: the six DOT_SETS and the five extra accumulator/sum combinations.

Probe Intel (2 of 2 runs) NVIDIA WARP
v_dot4_i32_i8 v25, v19, v20, v21 clamp, bounded check 11/11 11/11 11/11
v_dot4_i32_i8 v25, v19, v20, v21, bounded check 11/11 11/11 11/11
v_dot8_i32_i4 v25, v19, v20, v21 clamp, bounded check 11/11 11/11 11/11
v_dot8_i32_i4 v25, v19, v20, v21, bounded check 11/11 11/11 11/11
v_dot4_i32_i8 ... clamp, current helper 11/11 11/11 11/11
v_dot4_i32_i8 ... clamp, the overflow-test rewrite from the first report 9/11: cases 1 and 2 unsaturated (80007df4, 7fffc012) 11/11 11/11

Sets 5 and 6 pass with both helpers on all three adapters, so they add no failure of their own. They detect a clamp that fires one step early. By the formulas of dot_reference, channel 1 (v_dot2_i32_i16) would read 479 instead of 475 and channel 2 (v_dot4_i32_i8) 386 instead of 382 in Set 5. In Set 6 they would read 51 instead of 55 and 71 instead of 75.

Offline check. In Python, the bounded check equals exact signed saturation in 5,382,600 cases. The accumulators sweep around 0, ±2^30, INT32_MAX and INT32_MIN and include random values. The sums cover [-65024, 65536] and [-448, 512], each case with and without clamp.

The cause on Intel stays a hypothesis.

Environment. Windows 11 build 26300.10075, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.9.2602.17, CMake 4.5.1, Python 3.14.7. Intel(R) UHD Graphics (8086:468B, driver 32.0.101.7092); NVIDIA GeForce RTX 3050 6GB Laptop GPU (10DE:25EC, driver 32.0.16.2114); WARP 10.0.26100.10068. Debug layer unavailable on all three (Graphics Tools not installed).

I'm opening a focused shader: PR with this change and a matching sentence in docs/experiments.md.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7103969347 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/736#issuecomment-7103969347). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-23T14:25:10Z. --- **Follow-up: the bounded 32-bit check passes the full `dot` program and the isolated probes on Intel, NVIDIA and WARP** Source: `34d03c7` (`main` at the time of the run), one build, one host. The Intel driver is now 32.0.101.7092 (the first report used 32.0.101.7026). The current helper still fails there with the same values. **Change under test.** In `tools/pixel_aot.py`, `v_dot4_i32_i8` and `v_dot8_i32_i4` end with the bounded check from the first report instead of `dot_i64_add` / `dot_i64_sat`: ```hlsl uint r = c + asuint(sum); if (sat && asint(c) >= 0x40000000 && asint(r) < 0) return 0x7fffffffu; if (sat && asint(c) < -0x40000000 && asint(r) >= 0) return 0x80000000u; return r; ``` `v_dot2_i32_i16` and the three unsigned forms keep the 64-bit pair. In `tests/pixel_aot_check.py`, `DOT_SETS` keeps Sets 1–4 and the five mutation controls, and gains one input just inside each signed endpoint: - Set 5, `(pack_f16_pair(-0.5, 1.0), 0x00070007, 0x0003ffff, 0x7ffffff0)`: `v_dot2_i32_i16`, `v_dot4_i32_i8` and `v_dot8_i32_i4` give `0x7ffffffe`. - Set 6, `(pack_f16_pair(-0.5, 1.0), 0x00050005, 0xfffeffff, 0x80000010)`: the same three give `0x80000001`. **Exact shader.** The program `check_dot_draw` draws, `translate(with_constants(DOT_BODY))`, compiled by `compile_shader` with the Windows SDK DXC 1.9.2602.17. The sets are constants, so the shader does not depend on them. | Helper | HLSL SHA-256 (as translated, LF) | CSO SHA-256 | CSO bytes | |---|---|---|---| | current | `54b6fae38df4efe26557ad12e622c0c445e1533612bf27a7c155e5f35c4428e1` | `c76adeeebe88facaae0d078024f9670c6c0c9d9d148d9406c925fa9ca217a382` | 5988 | | bounded check | `0d9b896dd5ac5083b7c962cccd2eac0d29a3f564cb82840e25474fd387082c84` | `f4a67ad94bb23d463aa0698be2b913604a8db12d49e41dbde847d96c73c4a99e` | 5960 | At current `main` (`58da18a`) the dot helpers, `DOT_BODY` and `DOT_SETS` are unchanged, and the same translation gives byte-identical HLSL for both helpers (checked offline). **1. CTest**, with `XBOX2WINDOWS_ADAPTER` set to `Intel` or `NVIDIA`: ```powershell ctest --preset dev --no-tests=error -R '^pixel_aot_hardware$' -j 1 -V ctest --preset dev --no-tests=error -R '^pixel_aot_warp$' -j 1 -V ``` | Source | Intel UHD Graphics | NVIDIA RTX 3050 Laptop | WARP | |---|---|---|---| | `34d03c7` | Failed: `check_dot_draw` `['pass', 'mismatch', 'mismatch', 'mismatch']`, channel 2 = 225, 282, 93 | Passed, 3 of 3 runs | Passed | | `34d03c7` + change | Passed, 3 of 3 runs (38.66, 38.61, 39.34 s) | Passed (55.96 s) | Passed (19.57 s) | **2. Every `draw-core` check on Intel.** As in the first report, `check_render(..., core_only=True)` ran with each named `check_*` wrapped so that a failure is recorded and the run continues. On `34d03c7`, `check_dot_draw` is the only one of the 15 checks that fails. With the change, all 15 pass. **3. Full `dot` program** through the same `translate`, `compile_shader` and `--check-pixel-batch` path, all six sets, Intel twice: | Helper | Intel (2 of 2 runs) | NVIDIA | WARP | |---|---|---|---| | current | cases 1–3 mismatch (channel 2 = 225, 282, 93); cases 0, 4 and 5 pass | 6/6 | 6/6 | | bounded check | 6/6 | 6/6 | 6/6 | All five mutation controls are detected with both helpers on all three adapters. **4. Isolated probes**, built as in the first report. Each probe gets 11 inputs: the six `DOT_SETS` and the five extra accumulator/sum combinations. | Probe | Intel (2 of 2 runs) | NVIDIA | WARP | |---|---|---|---| | `v_dot4_i32_i8 v25, v19, v20, v21 clamp`, bounded check | 11/11 | 11/11 | 11/11 | | `v_dot4_i32_i8 v25, v19, v20, v21`, bounded check | 11/11 | 11/11 | 11/11 | | `v_dot8_i32_i4 v25, v19, v20, v21 clamp`, bounded check | 11/11 | 11/11 | 11/11 | | `v_dot8_i32_i4 v25, v19, v20, v21`, bounded check | 11/11 | 11/11 | 11/11 | | `v_dot4_i32_i8 ... clamp`, current helper | 11/11 | 11/11 | 11/11 | | `v_dot4_i32_i8 ... clamp`, the overflow-test rewrite from the first report | 9/11: cases 1 and 2 unsaturated (`80007df4`, `7fffc012`) | 11/11 | 11/11 | **Sets 5 and 6** pass with both helpers on all three adapters, so they add no failure of their own. They detect a clamp that fires one step early. By the formulas of `dot_reference`, channel 1 (`v_dot2_i32_i16`) would read 479 instead of 475 and channel 2 (`v_dot4_i32_i8`) 386 instead of 382 in Set 5. In Set 6 they would read 51 instead of 55 and 71 instead of 75. **Offline check.** In Python, the bounded check equals exact signed saturation in 5,382,600 cases. The accumulators sweep around 0, ±2^30, `INT32_MAX` and `INT32_MIN` and include random values. The sums cover [-65024, 65536] and [-448, 512], each case with and without `clamp`. The cause on Intel stays a hypothesis. **Environment.** Windows 11 build 26300.10075, MSVC 19.44.35230, Windows SDK 10.0.26100, DXC 1.9.2602.17, CMake 4.5.1, Python 3.14.7. Intel(R) UHD Graphics (`8086:468B`, driver 32.0.101.7092); NVIDIA GeForce RTX 3050 6GB Laptop GPU (`10DE:25EC`, driver 32.0.16.2114); WARP 10.0.26100.10068. Debug layer unavailable on all three (Graphics Tools not installed). I'm opening a focused `shader:` PR with this change and a matching sentence in `docs/experiments.md`. _AI-assisted._
Sign in to join this conversation.
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#730
No description provided.