nir: Support upper bound of subgroup_id/num_subgroups for non-compute.
authorTimur Kristóf <timur.kristof@gmail.com>
Fri, 23 Apr 2021 06:46:18 +0000 (08:46 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 May 2021 13:47:04 +0000 (13:47 +0000)
commit9a2ffe1abbfe287a1aaf5e76b45278d791986e6f
tree4eddf8d56fe31af22f715e1225e548358359515f
parentac5ba2dfadb46edb260be631f128e264c1711237
nir: Support upper bound of subgroup_id/num_subgroups for non-compute.

These intrinsics will be used when lowering NGG shaders, including
currently supported stages like VS, TES, GS and also by mesh shaders
in the future.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10740>
src/compiler/nir/nir_range_analysis.c