broadcom/compiler: lower nir_intrinsic_load_num_subgroups
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 22 Jun 2021 10:00:55 +0000 (12:00 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 29 Jun 2021 06:43:06 +0000 (08:43 +0200)
commita9ad04f17d9f2c902141d3a362e2993ac9ce3ab8
treef1b19aad102bb70e73391ee9a9380f9d8158ede3
parent30dec8b414ef6113ba36726e3e72915a7b7b5288
broadcom/compiler: lower nir_intrinsic_load_num_subgroups

The number of subgroups is the local workgroup size divided by the
dispatch width.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11620>
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/vir.c