nir/lower_system_values: Support lowering more intrinsics
authorJason Ekstrand <jason@jlekstrand.net>
Fri, 12 Jul 2019 20:26:03 +0000 (15:26 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 16 Jul 2019 16:05:16 +0000 (16:05 +0000)
commit998d84fca56b2e89ff7342a2c51398d7e9429114
tree32a838c1f610bfd3f08a8f4df548c554bec653b6
parentae8caaadeee1bb9518a82b6d4c28ba8b6740907e
nir/lower_system_values: Support lowering more intrinsics

Instead of only lowering system from variables, lower most to intrinsics
and let the lowering framework immediately lower the intrinsic.  This
will result in a bit more instruction churn but it means that NIR code
builders can just use intrinsics instead of everything having to go
through variables.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_lower_system_values.c