diff options
author | Eric Anholt <[email protected]> | 2017-10-24 13:08:17 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-30 13:31:16 -0700 |
commit | 125f2a751e0062077504f3651840e71d58c88af2 (patch) | |
tree | 97c03fec095b508159e8b31f570841d17f919243 /src/broadcom | |
parent | eecdbaa98578110523b04b8a4f160b8df2dea82f (diff) |
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.
Diffstat (limited to 'src/broadcom')
-rw-r--r-- | src/broadcom/compiler/nir_to_vir.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |