spirv: fix lowering of OpGroupNonUniformAllEqual
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Nov 2019 09:15:01 +0000 (10:15 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 19 Nov 2019 18:01:13 +0000 (18:01 +0000)
commit194bee193c547912561259d7ad2e3f0ab0363d1d
treec1a1a06e5146a65e1b73fa1f80f8552555561eb8
parent2941a734a0242bbc3046be65f548d5639e95b167
spirv: fix lowering of OpGroupNonUniformAllEqual

It should rely on the source type, not on the return type which
is always a boolean anyways, so vote_feq was never selected. For
OpSubgroupAllEqualKHR it's always an integer comparison.

This fixes some VK_KHR_shader_subgroup_extended_types tests with RADV.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/compiler/spirv/vtn_subgroup.c