nir/constant_expression: remove fquantize2f16 denorm special case
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Unnessecary, as any fp32 denorm would be 0 here already.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39266>
This commit is contained in:
Georg Lehmann 2026-01-12 14:39:24 +01:00 committed by Marge Bot
parent 631a7ef92a
commit fdfe3acdf0

View file

@ -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)});