Repository navigation
Conversation
The test walks the destination write as an access chain, a load of the old word and a select before the store. 92417d5 (ItsNotRexed#4473) writes the word directly when a block has no inactive lanes, so on current main six subtests of this file ask for an OpSelect the translator no longer emits. It now follows the bitcast word to the OpStore of its own register and accepts the predicated form for blocks whose EXEC can be partial, still rejecting a second write of that register from another value. What the file is actually about — the scaling and clamp data flow before that write — is untouched. On 8575d36: `python -I -m unittest discover -s tests -p "test_f64_*.py"` gives `Ran 45 tests, FAILED (failures=13)`; six are here, and `git bisect` with this file as the predicate lands on 92417d5. With this change and the matching one in ItsNotRexed#4371, the same command runs 45/45 OK. CPU-only: no device, no game data.
Contributor
Author
|
Cerrando este PR: la misma corrección ya está en #6994, #6474 y #7209, abiertos antes que este, y el aviso de @illusionart453-max en el hilo de coordinación me lo confirmó. Cuatro PRs sobre dos ficheros de test es ruido; me retiro y dejo que aterrice el primero. La parte de \ ests/test_f64_output_modifiers.py\ la sigue llevando #4371, que es anterior a esos tres; si alguno de ellos aterriza antes, rebaseo #4371 y quito ese fichero de mi PR. AI-assisted. |
Contributor
Author
This was referenced Nov 23, 2026
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.
Six subtests of
tests/test_f64_conversion.pyfail on currentmainbecause the test still describes the shape92417d591(#4473) replaced. Reported and claimed in the coordination thread: finding, claim.What is broken and where
Thirteen failures in that group, six of them here:
F64ConversionTest.test_output_modifiersformodifiers='',mul:2,mul:4,div:2,clamp,clamp div:2.git bisectwith this one file as the predicate, over92417d591^..73fce5499^, names92417d591(SweatierKey, "rdna2spirv: cache per-block%activeloads and fast-path no-EXECdst()writes (#4473)") as the first bad commit. The translator now emits, for this fixture:and the test asks for an
OpAccessChainresult it can bind, thenOpLoad %uintof the old word, thenOpSelect %uint new old, then a store of that select. #4473 writes the word directly when a block has no inactive lanes, so there is no select to find. The code is right; the test is looking for an instruction that shape no longer needs. Nothing about the modifier behaviour changed in #4473, and nothing here changes what this file checks before the write: theOpFConvert, theOpFMulagainst the scale formul:2/mul:4/div:2, and theFClampforclampare found exactly as before, in the same order.What the test does instead
It follows the word produced by
OpBitcast %uintto theOpStoreof its own register, and accepts either write shape: the direct one, or a select of the new word with a load of the old one, which is still what a block whose EXEC can be partial needs. It keeps the parts that make the check mean something: the converted word has to be what reachesv3,v3must not also be written from another value, and the register is named in the assertion instead of being bound from whatever access chain happens to be present.Tested
CPU-only, on
8575d36ed, Windows 11, CPython 3.13. No device was used and no game data is involved.Ran 45 tests … FAILED (failures=13), six in this file.6/6pass, and the remaining seven are the ones intests/test_f64_output_modifiers.py, which rdna2spirv: the f64 VALU ops keep only clamp, not their omod #4371 already rewrites for the same reason.Ran 45 tests in 1.59s/OK.#4371 touches
test_f64_output_modifiers.pyand this one touchestest_f64_conversion.py, so the two do not overlap in files. If you would rather have the whole group fixed inside #4371, say so and I'll close this; if you would rather havemaingreen sooner, this is the smaller of the two and #4371's reviewers have already tested its current head, which is why I did not touch that file again.AI-assisted.