b44f97a7ba
SPIR-V rules for fmax/fmin scans are *very* stupid. The required identity is Inf instead of NaN but if one input is NaN, the other value has to be returned. This means for invocation 0: min(subgroupExclusiveMin(NaN), NaN) -> Inf subgroupInclusiveMin(NaN) -> undefined (NaN for any sane backend) Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27536>