From a48a38937cabad68fcda23defc2c9d4145d267d4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 20 Oct 2017 12:43:11 -0700 Subject: 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(+) (limited to 'src/broadcom/compiler') 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, -- cgit v1.2.3