nir: move lowering of SYSTEM_VALUE_LOCAL_GROUP_SIZE into a function
authorKarol Herbst <kherbst@redhat.com>
Wed, 11 Jul 2018 00:42:03 +0000 (02:42 +0200)
committerKarol Herbst <kherbst@redhat.com>
Thu, 12 Jul 2018 11:09:00 +0000 (13:09 +0200)
commit31cbcbdb873bc7437e02fbe7ba54b864245c7830
tree98cb66731b201b48a5817748d496028547d022cc
parent529aa9e646333926fba9ba792ef77f0d04a4e6c8
nir: move lowering of SYSTEM_VALUE_LOCAL_GROUP_SIZE into a function

we already have this code duplicated and we will need it for the global
group size as well

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
src/compiler/nir/nir_lower_system_values.c