Skip to content

nir_to_tgsi: Remove the abs on fcsel's bool src.

Emma Anholt requested to merge anholt/mesa:ntt-fcsel-abs into main

While the nir fcsel opcode specifies src0 != 0.0, as the comment says, it's only ever used on bools-as-floats, so we know that src0 is non-negative. This saves an instruction per CMP on i915.

Merge request reports