Skip to content

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

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
KelboLive:tests/stale-shader-expectations
Nov 30, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
KelboLive:tests/stale-shader-expectations

Conversation

@KelboLive

@KelboLive KelboLive commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@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#3568 writes binary32 literals with an f suffix, so the patterns three fixtures mutate stopped
matching: startup_image_sample_b_flow_check and startup_image_get_lod_flow_check failed in
mutants() on None, and startup_gfx2hlsl_cvt_off_f32_i4_check found no saturate/multiply to
swap. The patterns accept or capture the suffix.

The native_direct_mesh clamp case is already fixed on main, so it is not part of this change.
@KelboLive
KelboLive force-pushed the tests/stale-shader-expectations branch from d29539b to 8c52954 Compare November 30, 2026 16:17
@KelboLive KelboLive changed the title tests: follow the clamp and the f-suffixed literals in four fixtures tests: follow the f-suffixed literals in three shader fixtures Nov 30, 2026

@R0Y00 R0Y00 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
R0Y00 merged commit a144231 into R0Y00:main Nov 30, 2026
5 checks passed
@KelboLive
KelboLive deleted the tests/stale-shader-expectations branch December 1, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants