aboutsummaryrefslogtreecommitdiffstats
path: root/src/broadcom
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-10-20 12:43:11 -0700
committerEric Anholt <[email protected]>2017-10-20 15:59:41 -0700
commita48a38937cabad68fcda23defc2c9d4145d267d4 (patch)
tree684030d8e546fd5e4033d92ae733788950dfbe41 /src/broadcom
parent0e6fee7328c7faf298916f419dea7ec78ec49e9e (diff)
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.
Diffstat (limited to 'src/broadcom')
-rw-r--r--src/broadcom/compiler/nir_to_vir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index 374c0b56085..167b80bac93 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,