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 <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25362>
This commit is contained in:
Karol Herbst
2023-09-23 11:58:39 +02:00
committed by Marge Bot
parent 7ff96fb5b0
commit 61b1a14e91
+11 -1
View File
@@ -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,