Module: Mesa Branch: main Commit: fd08d90d2a77ed7b9055ab2325e9f661ee41978a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fd08d90d2a77ed7b9055ab2325e9f661ee41978a
Author: Vitaliy Triang3l Kuzmin <[email protected]> Date: Sat Nov 4 21:36:47 2023 +0300 nir: Don't skip lower_alu if only bit_count needs lowering Reviewed-by: Christian Gmeiner <[email protected]> Signed-off-by: Vitaliy Triang3l Kuzmin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26048> --- src/compiler/nir/nir_lower_alu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_lower_alu.c b/src/compiler/nir/nir_lower_alu.c index 675e95bcaa8..9911d7acfa6 100644 --- a/src/compiler/nir/nir_lower_alu.c +++ b/src/compiler/nir/nir_lower_alu.c @@ -225,6 +225,7 @@ bool nir_lower_alu(nir_shader *shader) { if (!shader->options->lower_bitfield_reverse && + !shader->options->lower_bit_count && !shader->options->lower_mul_high) return false;
