aco/wave32: Allow setting the subgroup ballot size to 64-bit.

Previously, it would only work when the ballot size was set to the
lane mask. This patch makes is possible to set the ballot size
to either 32-bit or 64-bit for wave32 mode.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
This commit is contained in:
Timur Kristóf
2019-11-28 10:41:19 +01:00
committed by Daniel Schürmann
parent ed815d503e
commit 21db083504
2 changed files with 8 additions and 4 deletions
@@ -294,7 +294,6 @@ void init_context(isel_context *ctx, nir_shader *shader)
break;
case nir_intrinsic_ballot:
type = RegType::sgpr;
size = lane_mask_size;
break;
case nir_intrinsic_load_sample_id:
case nir_intrinsic_load_sample_mask_in: