mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 07:50:20 +01:00
nir/constant_expression: remove fquantize2f16 denorm special case
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:
parent
631a7ef92a
commit
fdfe3acdf0
1 changed files with 2 additions and 2 deletions
|
|
@ -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)});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue