On Tue Jun 13 10:01:39 2023 +0000, Nikolay Sivov wrote:
By casting you mean deferring turning texkill to discard_nz in a first place? Or having higher level calls that do type conversion in codegen.c, like hlsl_add_binary_comparison_expr()?
Yes, I mean the type conversion logic. In this case I think it should just be a matter of creating a zero constant with the same type as the input; we do that elsewhere in several places anyway.