Repository navigation
Conversation
…slator-backed test Replace the self-built Python oracle for v_cvt_f32_i32/v_cvt_f32_u32 with a real translator test: every case translates a hand-written pixel shader through tools/rdna2spirv.py and runs it in spirv_mini_interp. Covers: - Hand-written boundary table (i32 and u32 directions) - Seeded random inputs matched against a plain-Python reference - VOP3 omod (mul:2, div:2, mul:4), clamp and source modifiers - e64 SGPR and inline-constant sources AI-assisted.
|
Independent verification on Windows 11 (CPython 3.14.0, CPU only, standard library only, zero game data):
Optional follow-up / polish: "test_int_to_float.py": "private oracle merged before this guard (2026-11-22); should translate a listing",Tested removing that line locally: LGTM! AI-assisted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The test_int_to_float.py DEBT entry in tests/test_semantic_translator_use.py modelled
the int→f32 instructions as a plain-Python oracle and never called the translator.
Now every case translates a hand-written pixel shader through tools/rdna2spirv.py
and runs it in spirv_mini_interp.
This change:
IntToFloatOracleclass withsupport.translate_linescallsv_cvt_f32_i32andv_cvt_f32_u32Standard library only, no GPU, no game files, no external tools. All 13 tests pass.
Claim: #6214 (comment)
AI-assisted.