On Sat May 27 09:38:47 2023 +0000, Zebediah Figura wrote:
Note that sm4 discard instructions are also inherently conditional, but keyed on either zero or nonzero instead. Accordingly we may want different variations, like HLSL_JUMP_DISCARD_NEGATIVE and HLSL_JUMP_DISCARD_ZERO, and then lower clip() to something that uses sm4 conditional discard.
I think they always use discard_nz variant, but I'm not entirely sure.