tests: follow the f-suffixed literals in three shader fixtures #3624

Manually merged
github merged 1 commit from github-bot/gh-3622 into gh-pr/3622/base 2026-11-30 17:17:49 +00:00 AGit
Owner

@⁠KelboLive on GitHub · 2026-11-30 15:55 UTC · original
KelboLive:tests/stale-shader-expectations → main · +4 −4 · 3 files · 1 commits · merged 2026-11-30 17:15 UTC

Change

#3570 writes binary32 literals with an f suffix, so the patterns three fixtures mutate stopped matching:

Fixture Failure Change
startup_image_sample_b_flow_check.py mutants() matched nothing and failed on NoneType.group the branch-write pattern accepts the suffix
startup_image_get_lod_flow_check.py same same
startup_gfx2hlsl_cvt_off_f32_i4_check.py no saturate/multiply to swap the pattern captures the suffix and reuses it in the replacement

The fourth case from #3623, native_direct_mesh, is already fixed on main by #3618 (9cb905e4f), with a
stronger assertion than I had: it checks the clamped values are wired into setMeshOutputCounts. This branch
now leaves that file alone.

Verification

In-box dev preset, rebased onto cf43986db:

native_direct_mesh                        Passed   4.46 sec   (upstream's #3616 case)
startup_gfx2hlsl_cvt_off_f32_i4_warp      Passed   1.54 sec
startup_image_sample_b_flow_warp          Passed   4.02 sec
startup_image_get_lod_flow_warp           Passed   2.14 sec

The two flow fixtures and the cvt_off fixture run their full pixel comparisons and mutation checks after
the pattern change, so the parsers are exercised rather than skipped.

Why nobody saw it

None of the three runs in the pr preset, so each merged green and only failed on main. #3608 added the
slot 86 heap checks to that preset; #3556 is the case for extending it to these fixtures.

Refs #3623 (three of its four cases; the fourth is #3618).

**@⁠KelboLive** on GitHub · 2026-11-30 15:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3622) `KelboLive:tests/stale-shader-expectations` → `main` · +4 −4 · 3 files · 1 commits · merged 2026-11-30 17:15 UTC ## Change #3570 writes binary32 literals with an `f` suffix, so the patterns three fixtures mutate stopped matching: | Fixture | Failure | Change | |---|---|---| | `startup_image_sample_b_flow_check.py` | `mutants()` matched nothing and failed on `NoneType.group` | the branch-write pattern accepts the suffix | | `startup_image_get_lod_flow_check.py` | same | same | | `startup_gfx2hlsl_cvt_off_f32_i4_check.py` | no saturate/multiply to swap | the pattern captures the suffix and reuses it in the replacement | The fourth case from #3623, `native_direct_mesh`, is already fixed on `main` by #3618 (`9cb905e4f`), with a stronger assertion than I had: it checks the clamped values are wired into `setMeshOutputCounts`. This branch now leaves that file alone. ## Verification In-box dev preset, rebased onto `cf43986db`: ``` native_direct_mesh Passed 4.46 sec (upstream's #3616 case) startup_gfx2hlsl_cvt_off_f32_i4_warp Passed 1.54 sec startup_image_sample_b_flow_warp Passed 4.02 sec startup_image_get_lod_flow_warp Passed 2.14 sec ``` The two flow fixtures and the `cvt_off` fixture run their full pixel comparisons and mutation checks after the pattern change, so the parsers are exercised rather than skipped. ## Why nobody saw it None of the three runs in the `pr` preset, so each merged green and only failed on `main`. #3608 added the slot 86 heap checks to that preset; #3556 is the case for extending it to these fixtures. Refs #3623 (three of its four cases; the fourth is #3618).
Four fixtures on main pin behaviour that recent merges changed, so they fail on main only:

- native_direct_mesh: #3537 replaced the mesh count exchange refusal with a clamp to the
  declared range. The case now compiles the program and asserts the unsigned-greater select
  against both limits instead of expecting the removed message.
- startup_image_sample_b_flow_check and startup_image_get_lod_flow_check: #3568 writes
  binary32 literals with an f suffix, so the branch-write pattern they mutate stopped
  matching and mutants() failed on None. The patterns accept the suffix.
- startup_gfx2hlsl_cvt_off_f32_i4_check: the same suffix broke the saturate/multiply
  mutation; it now captures the suffix and reuses it in the replacement.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 15:55:49 +00:00
github-bot changed title from tests: follow the clamp and the f-suffixed literals in four fixtures to tests: follow the f-suffixed literals in three shader fixtures 2026-11-30 16:19:49 +00:00
github-bot force-pushed github-bot/gh-3622 from d29539b535 to 8c52954613 2026-11-30 16:19:50 +00:00 Compare
Author
Owner

@⁠lukaslw-lab on GitHub · 2026-11-30 16:16 UTC · original

@⁠KelboLive, #3618 merged at 15:46 with the same too-many-primitives change, so the native_direct_mesh_check.py hunk here now conflicts with main. The merged version ties each select to its icmp ugt and checks that those two values reach setMeshOutputCounts, so the hunk can be dropped. The three f-suffix fixes are still needed (startup_gfx2hlsl_cvt_off_f32_i4_warp also fails here on Windows 10 at main).

**@⁠lukaslw-lab** on GitHub · 2026-11-30 16:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3622#issuecomment-7284406468) @⁠KelboLive, #3618 merged at 15:46 with the same `too-many-primitives` change, so the `native_direct_mesh_check.py` hunk here now conflicts with `main`. The merged version ties each `select` to its `icmp ugt` and checks that those two values reach `setMeshOutputCounts`, so the hunk can be dropped. The three `f`-suffix fixes are still needed (`startup_gfx2hlsl_cvt_off_f32_i4_warp` also fails here on Windows 10 at `main`).
github-bot changed target branch from main to gh-pr/3622/base 2026-11-30 17:17:47 +00:00
github manually merged commit 8c52954613 into gh-pr/3622/base 2026-11-30 17:17:49 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-30 17:13 UTC · original · approved these changes

Reviewed the three fixture-only changes at this revision. The mutations still exercise the original negative controls, and the replacement preserves the literal suffix. Windows Debug/WARP 3/3 via ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(startup_image_(sample_b|get_lod)_flow_warp|startup_gfx2hlsl_cvt_off_f32_i4_warp)$'.

**@⁠R0Y00** on GitHub · 2026-11-30 17:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3622#pullrequestreview-6116887354) · **approved these changes** Reviewed the three fixture-only changes at this revision. The mutations still exercise the original negative controls, and the replacement preserves the literal suffix. Windows Debug/WARP 3/3 via `ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(startup_image_(sample_b|get_lod)_flow_warp|startup_gfx2hlsl_cvt_off_f32_i4_warp)$'`.
This discussion has been locked. Commenting is limited to contributors.
No description provided.