From: Eric Anholt Date: Tue, 24 Oct 2017 20:08:17 +0000 (-0700) Subject: broadcom/vc5: Lower unpack_*_4x8 to normal math. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=125f2a751e0062077504f3651840e71d58c88af2;p=mesa.git broadcom/vc5: Lower unpack_*_4x8 to normal math. We only have 2x16 unpacking in our ALUs. To enable this, we also need lower_fdiv for its new instructions, which had been handled at a higher level previously. --- diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c index 3b032b704ea..92ba6144bc5 100644 --- a/src/broadcom/compiler/nir_to_vir.c +++ b/src/broadcom/compiler/nir_to_vir.c @@ -1976,6 +1976,9 @@ const nir_shader_compiler_options v3d_nir_options = { .lower_pack_snorm_2x16 = true, .lower_pack_unorm_4x8 = true, .lower_pack_snorm_4x8 = true, + .lower_unpack_unorm_4x8 = true, + .lower_unpack_snorm_4x8 = true, + .lower_fdiv = true, .lower_ffma = true, .lower_flrp32 = true, .lower_fpow = true,