From 61b1a14e910ab13f2a834dfca4bf20b894801b2c Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 23 Sep 2023 11:58:39 +0200 Subject: [PATCH] v3d: lower 64 bit ALUs Even though rusticl won't advertise support for 64 bit ints, some of the libclc builtins still use 64 bit operations to lower 32 bit ALU ops. Reviewed-by: Iago Toral Quiroga Part-of: --- src/gallium/drivers/v3d/v3d_screen.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/v3d/v3d_screen.c b/src/gallium/drivers/v3d/v3d_screen.c index aa849748346..411882a795c 100644 --- a/src/gallium/drivers/v3d/v3d_screen.c +++ b/src/gallium/drivers/v3d/v3d_screen.c @@ -715,7 +715,17 @@ static const nir_shader_compiler_options v3d_nir_options = { .lower_mul_high = true, .lower_wpos_pntc = true, .lower_to_scalar = true, - .lower_int64_options = nir_lower_imul_2x32_64, + .lower_int64_options = + nir_lower_bcsel64 | + nir_lower_conv64 | + nir_lower_iadd64 | + nir_lower_icmp64 | + nir_lower_imul_2x32_64 | + nir_lower_imul64 | + nir_lower_ineg64 | + nir_lower_logic64 | + nir_lower_shift64 | + nir_lower_ufind_msb64, .lower_fquantize2f16 = true, .has_fsub = true, .has_isub = true,