amd: Enable boolean subgroup lowering

Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/218>
This commit is contained in:
Connor Abbott
2019-02-04 12:57:37 +01:00
committed by Marge Bot
parent 1dab2c5bd2
commit 0d186d356c
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -657,6 +657,7 @@ radv_shader_spirv_to_nir(struct radv_device *device, const struct radv_shader_st
.lower_shuffle_to_swizzle_amd = 1,
.lower_ballot_bit_count_to_mbcnt_amd = 1,
.lower_inverse_ballot = !has_inverse_ballot,
.lower_boolean_reduce = 1,
});
NIR_PASS(_, nir, nir_lower_load_const_to_scalar);
@@ -256,6 +256,7 @@ const nir_lower_subgroups_options si_nir_subgroups_options = {
.lower_vote_eq = true,
.lower_vote_bool_eq = true,
.lower_inverse_ballot = true,
.lower_boolean_reduce = true,
};
/**