broadcom/vc5: Set the snorm/unorm packing functions to be lowered.
authorEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 19:43:11 +0000 (12:43 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Oct 2017 22:59:41 +0000 (15:59 -0700)
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

index 374c0b56085cf57e9c1666e408eaed0148c737db..167b80bac932a2508de601ab9d2866caee2e7246 100644 (file)
@@ -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,