diff --git a/src/compiler/nir/nir_opt_algebraic.py b/src/compiler/nir/nir_opt_algebraic.py index fb23d196aa1..654d244b631 100644 --- a/src/compiler/nir/nir_opt_algebraic.py +++ b/src/compiler/nir/nir_opt_algebraic.py @@ -2477,9 +2477,9 @@ optimizations.extend([ (('fsign', 'a@64'), ('fsub', ('b2f', ('!flt', 0.0, a)), ('b2f', ('!flt', a, 0.0))), 'options->lower_doubles_options & nir_lower_dsign'), # Address/offset calculations: - # Drivers supporting imul24 should use the nir_lower_amul() pass, this + # Drivers supporting imul24 should use a pass like nir_lower_amul(), this # rule converts everyone else to imul: - (('amul', a, b), ('imul', a, b), '!options->has_imul24'), + (('amul', a, b), ('imul', a, b), '!options->has_imul24 && !options->has_amul'), (('umul24', a, b), ('imul', ('iand', a, 0xffffff), ('iand', b, 0xffffff)),