On Thu Mar 28 22:03:42 2024 +0000, Zebediah Figura wrote:
Looking back, the whole point of `HLSL_IR_JUMP_DISCARD_NEG` was for sm1. If we're not going to use it anymore, then we should just get rid of it, and generate DISCARD_NZ directly from hlsl.y. That said, if we lower clip(var.xyz) down to a scalar condition, converting that *back* to texkill seems tricky.
Actually, more importantly, texkill *does* operate on all four components for 2.0, and for 1.x it has very restricted usage anyway (you can't use it on arbitrary expressions). Not sure why the test is failing in that case...