Skip to content

tests: update f64_conversion and f64_output_modifiers for unmasked stores (#4473) - #6474

Open
BBareth wants to merge 1 commit into
ItsNotRexed:mainfrom
BBareth:f64-tests-after-4473
Open

BBareth wants to merge 1 commit into
ItsNotRexed:mainfrom
BBareth:f64-tests-after-4473

Conversation

@BBareth

@BBareth BBareth commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

#4473 (92417d591) fast-paths dst() writes to unmasked OpStore when EXEC is never written in the shader. Updates tests/test_f64_conversion.py and tests/test_f64_output_modifiers.py to expect the unmasked OpStore instead of the OpLoad + OpSelect mask sequence.

Testing

  • python3.12 -I tests/test_f64_conversion.py -v (1/1 passed)
  • python3.12 -I tests/test_f64_output_modifiers.py -v (2/2 passed)
  • Cross-reviewed before opening PR.

AI-assisted (Claude Opus 5.5 Medium + Gemini 4 Hydrogen Medium review).

@AsgerCode

Copy link
Copy Markdown

Tested 36f9c1f on Windows 11 (NTFS), Python 3.12.10 (CPU only, no GPU, no game files): pass

What I ran:

  • python -I tests/test_f64_conversion.py -v: 1 test, OK.
  • python -I tests/test_f64_output_modifiers.py -v: 2 tests, OK.
  • Current main (1cc6e3c) without this PR: both files fail (6 and 7 subtest failures, for example Missing SPIR-V instruction: OpLoad %uint %reg_v4). So main is red here since 92417d5 (rdna2spirv: cache per-block %active loads and fast-path no-EXEC dst() writes #4473), and this PR fixes it.
  • main merged with this PR: both files OK. The merge is clean, and main (37 commits ahead of the merge base) did not touch either file.
  • Negative control: I turned off the fast path (g.exec_static_true = False in translate). The new assertions fail in every subtest (6 and 7 failures), because the store goes back to OpLoad + OpSelect. So the updated tests catch a regression of the rdna2spirv: cache per-block %active loads and fast-path no-EXEC dst() writes #4473 fast path, not only the new output.
  • Other tests that use tests/listing.py (test_f64_transcendentals, test_rcp_iflag_mods, test_f64_float_controls, test_spirv_interp_f64_glsl, semantic/test_wave64_halves_readlane_uniform, plus the pytest-style test_cube_sample, test_f16_*, test_mode_round, test_texel_offsets, test_u16_high_half, test_values): all pass (pytest: 436 passed, 14 skipped).

The new comments are correct: neither the fixture nor BODY nor the listing epilogue writes EXEC, so exec_static_true is set and dst() stores the word directly.

Overlap with other open PRs (none does this same fix):

AI-assisted (Claude Code).

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.

2 participants