broadcom/vc5: Lower unpack_*_4x8 to normal math.
authorEric Anholt <eric@anholt.net>
Tue, 24 Oct 2017 20:08:17 +0000 (13:08 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:16 +0000 (13:31 -0700)
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.

src/broadcom/compiler/nir_to_vir.c

index 3b032b704ea8ab96ccd0ea5c0192eb2ba1fb3d22..92ba6144bc5b2d9d39422ed6d7851f5b2f016003 100644 (file)
@@ -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,