From fdfe3acdf040470e5e10a4b198869aaa8efb54e5 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Mon, 12 Jan 2026 14:39:24 +0100 Subject: [PATCH] nir/constant_expression: remove fquantize2f16 denorm special case Unnessecary, as any fp32 denorm would be 0 here already. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_constant_expressions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_constant_expressions.py b/src/compiler/nir/nir_constant_expressions.py index 0d000f2229e..675e6086967 100644 --- a/src/compiler/nir/nir_constant_expressions.py +++ b/src/compiler/nir/nir_constant_expressions.py @@ -527,7 +527,7 @@ struct ${type}${width}_vec { _dst_val[_i].${get_const_field(output_type)} = dst; % endif - % if op.name != "fquantize2f16" and type_base_type(output_type) == "float": + % if type_base_type(output_type) == "float": % if type_has_size(output_type): if (nir_is_denorm_flush_to_zero(execution_mode, ${type_size(output_type)})) { constant_denorm_flush_to_zero(&_dst_val[_i], ${type_size(output_type)}); @@ -574,7 +574,7 @@ struct ${type}${width}_vec { _dst_val[${k}].${get_const_field(output_type)} = dst.${"xyzwefghijklmnop"[k]}; % endif - % if op.name != "fquantize2f16" and type_base_type(output_type) == "float": + % if type_base_type(output_type) == "float": % if type_has_size(output_type): if (nir_is_denorm_flush_to_zero(execution_mode, ${type_size(output_type)})) { constant_denorm_flush_to_zero(&_dst_val[${k}], ${type_size(output_type)});