freedreno/ir3: lower pack/unpack ops
authorJonathan Marek <jonathan@marek.ca>
Sun, 15 Dec 2019 18:43:39 +0000 (13:43 -0500)
committerJonathan Marek <jonathan@marek.ca>
Tue, 17 Dec 2019 00:20:07 +0000 (19:20 -0500)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3106>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3106>

src/freedreno/ir3/ir3_nir.c

index 4a45a15ba5022e752aa1aa55f0b3a42cc22f2d6a..bf643c7143974b0deb0a6a8218bdefb0d8fbb3ab 100644 (file)
@@ -57,6 +57,18 @@ static const nir_shader_compiler_options options = {
                .lower_helper_invocation = true,
                .lower_bitfield_insert_to_shifts = true,
                .lower_bitfield_extract_to_shifts = true,
+               .lower_pack_half_2x16 = true,
+               .lower_pack_half_2x16_split = true,
+               .lower_pack_snorm_4x8 = true,
+               .lower_pack_snorm_2x16 = true,
+               .lower_pack_unorm_4x8 = true,
+               .lower_pack_unorm_2x16 = true,
+               .lower_unpack_half_2x16 = true,
+               .lower_unpack_half_2x16_split = true,
+               .lower_unpack_snorm_4x8 = true,
+               .lower_unpack_snorm_2x16 = true,
+               .lower_unpack_unorm_4x8 = true,
+               .lower_unpack_unorm_2x16 = true,
                .use_interpolated_input_intrinsics = true,
                .lower_rotate = true,
                .lower_to_scalar = true,
@@ -87,6 +99,18 @@ static const nir_shader_compiler_options options_a6xx = {
                .lower_helper_invocation = true,
                .lower_bitfield_insert_to_shifts = true,
                .lower_bitfield_extract_to_shifts = true,
+               .lower_pack_half_2x16 = true,
+               .lower_pack_half_2x16_split = true,
+               .lower_pack_snorm_4x8 = true,
+               .lower_pack_snorm_2x16 = true,
+               .lower_pack_unorm_4x8 = true,
+               .lower_pack_unorm_2x16 = true,
+               .lower_unpack_half_2x16 = true,
+               .lower_unpack_half_2x16_split = true,
+               .lower_unpack_snorm_4x8 = true,
+               .lower_unpack_snorm_2x16 = true,
+               .lower_unpack_unorm_4x8 = true,
+               .lower_unpack_unorm_2x16 = true,
                .use_interpolated_input_intrinsics = true,
                .lower_rotate = true,
                .vectorize_io = true,