On Fri May 26 21:24:14 2023 +0000, Zebediah Figura wrote:
The error may need to be specific to sm1, but I don't think we want to emit different IR. Rather, this should be a lowering pass, like everything else.
Why is it a problem for IR to differ? There is already a precedent in D3DCOLORtoUBYTE4(). For SM4 input has to be computed to a bool, for older versions we pass floats in. Do you mean that we could reference the argument of JUMP_DISCARD as is, and run a pass for SM4+ to produce this float comparison condition?