radv: always emit all compute block components
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Dec 2017 11:51:06 +0000 (12:51 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Dec 2017 21:19:39 +0000 (22:19 +0100)
commit97e57740d852aee282d5902de5a63c32071473da
tree113bd613bc5fa8d2a2855c4b70efc9c8a7935ace
parent271fc8606abd80d934c2a1fadb4a3227ca0b3d5d
radv: always emit all compute block components

The number of grid components is always 3 when gl_NumWorkGroups
is declared, because it relies on the number of components of
nir_instrinsic_load_num_work_groups.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c
src/amd/vulkan/radv_cmd_buffer.c