nir: Use nir_const_value_for_int in nir_lower_subgroups
authorJason Ekstrand <jason.ekstrand@collabora.com>
Fri, 11 Nov 2022 20:56:19 +0000 (14:56 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Dec 2022 23:12:30 +0000 (23:12 +0000)
commite6de164e0305d517fb66c01c9fc8931c278867f6
tree8fc617e2d9ca059de7bef278a86bee10507eca15
parentef168a57b9c87cc3c120e5a750adde582dc2cad1
nir: Use nir_const_value_for_int in nir_lower_subgroups

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7670
Fixes: e4e79de2a420 ("nir/subgroups: Support > 1 ballot components")
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19689>
src/compiler/nir/nir_lower_subgroups.c