fix(shader): lower f16 NLE comparisons through swapped unordered less… #399
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/399"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-10-02T18:20:20Z.
Translate VCmpNleF16 and VCmpxNleF16 to FPUnordLessThan32 with reversed operands. Apply operand conversion and source modifiers before swapping. Extend agc_driver_vopc_compare to cover all 144 pairs from the existing f16 edge-value table. Preserve the original input set and expected results. This change targets the intermittent Linux/lavapipe comparison failure. The root cause and effectiveness on lavapipe remain unverified.
Run each test three times without rebuilding; any failed run fails CI.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-03T02:47:45Z.
A heads-up: I suspect
agc_driver_vopc_comparebecame intermittent on the Linux CI runner (llvmpipe) after this change. It fails withthread 1 compare 39 is 0, expected 1; compare 39 is the f16 NLE case (!(ha <= hb)). I have seen it on three unrelated PRs (#290 run 37075919674, #312 run 37071265405, #407 run 37065871874), whilemainpassed at7d40a57d, so it does not fail every time. I have not reproduced it locally (my test runs use an NVIDIA GPU), so this may be llvmpipe behaviour rather than the lowering itself.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-03T19:32:32Z.
Found the cause of the intermittent
compare 39failure: it is an LLVM 20 x86 backend bug in lavapipe on Xeons with AVX512-FP16 (Granite and Emerald Rapids runners fail every time, EPYC and Ice Lake pass), not this change. Details and a one-line CI fix in #477.