summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-12-15 13:43:39 -0500
committerJonathan Marek <[email protected]>2019-12-16 19:20:07 -0500
commitc7c5a84cf3a08623755ef46a5a68bbfb6ae26667 (patch)
treeb9622e7af02f55273396c8d27598db1d59486204 /src
parent004797002fb87db0c2323955eed2f8f6871c3bfb (diff)
freedreno/ir3: lower pack/unpack ops
Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3106> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3106>
Diffstat (limited to 'src')
-rw-r--r--src/freedreno/ir3/ir3_nir.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 4a45a15ba50..bf643c71439 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -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,