Mesa (master): broadcom/vc5: Set the snorm/ unorm packing functions to be lowered.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 20 23:01:05 UTC 2017


Module: Mesa
Branch: master
Commit: a48a38937cabad68fcda23defc2c9d4145d267d4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a48a38937cabad68fcda23defc2c9d4145d267d4

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 20 12:43:11 2017 -0700

broadcom/vc5: Set the snorm/unorm packing functions to be lowered.

We don't have native instructions for them, so set up the lowering.  Once
we support the bfi instructions that get generated, they should start
actually working.

---

 src/broadcom/compiler/nir_to_vir.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index 374c0b5608..167b80bac9 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -1982,6 +1982,10 @@ const nir_shader_compiler_options v3d_nir_options = {
         .lower_extract_word = true,
         .lower_bitfield_insert = true,
         .lower_bitfield_extract = true,
+        .lower_pack_unorm_2x16 = true,
+        .lower_pack_snorm_2x16 = true,
+        .lower_pack_unorm_4x8 = true,
+        .lower_pack_snorm_4x8 = true,
         .lower_ffma = true,
         .lower_flrp32 = true,
         .lower_fpow = true,




More information about the mesa-commit mailing list