radeonsi/nir: fix shader ballot return value bitsize
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 12 Feb 2018 22:34:16 +0000 (09:34 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 14 Feb 2018 22:02:41 +0000 (09:02 +1100)
Fixes cts test:
KHR-GL46.shader_ballot_tests.ShaderBallotFunctionBallot

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader_nir.c

index ba4a66fabbc7528ce41055e955da69910e1b81d3..0a09963e9182a936969e693bdb1f63af787e6ec0 100644 (file)
@@ -630,7 +630,7 @@ si_lower_nir(struct si_shader_selector* sel)
 
        const nir_lower_subgroups_options subgroups_options = {
                .subgroup_size = 64,
-               .ballot_bit_size = 32,
+               .ballot_bit_size = 64,
                .lower_to_scalar = true,
                .lower_subgroup_masks = true,
                .lower_vote_trivial = false,