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

Merged
KelboLive merged 1 commit from upstream-pr/3622 into main 2026-11-30 17:15:28 +00:00
KelboLive commented 2026-11-30 15:55:07 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-30T15:55:07Z.


Change

#3568 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 #3621, native_direct_mesh, is already fixed on main by #3616 (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. #3606 added the
slot 86 heap checks to that preset; #3554 is the case for extending it to these fixtures.

Refs #3621 (three of its four cases; the fourth is #3616).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5568755780 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3622). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-11-30T15:55:07Z. --- ## Change #3568 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 #3621, `native_direct_mesh`, is already fixed on `main` by #3616 (`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`. #3606 added the slot 86 heap checks to that preset; #3554 is the case for extending it to these fixtures. Refs #3621 (three of its four cases; the fourth is #3616).
lukaslw-lab commented 2026-11-30 16:16:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-30T16:16:47Z.


@KelboLive, #3616 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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7284406468 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3622#issuecomment-7284406468). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-11-30T16:16:47Z. --- @KelboLive, #3616 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`).
R0Y00 commented 2026-11-30 17:13:56 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-30T17:13:56Z.

Review: APPROVED


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)$'.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6116887354 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/3622#pullrequestreview-6116887354). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-30T17:13:56Z. **Review:** APPROVED --- 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)$'`.
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!3622
No description provided.