nir/lower_system_values: Drop the context-aware builder functions
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 11 Jul 2019 19:01:20 +0000 (14:01 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 16 Jul 2019 16:05:16 +0000 (16:05 +0000)
commitae8caaadeee1bb9518a82b6d4c28ba8b6740907e
tree2a833b6e9a3f0722a4a9f4035ccc42b1e5e7605c
parent58ffd7fbf636d747ae8edd328f1ee6516c5fe063
nir/lower_system_values: Drop the context-aware builder functions

Instead of having context-aware builder functions, just provide lowering
for the system value intrinsics and let nir_shader_lower_instructions
handle the recursion for us.  This makes everything a bit simpler and
means that the lowering can also be used if something comes in as a
system value intrinsic rather than a load_deref.

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