nir/builder: Add a load_system_value helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 02:46:16 +0000 (18:46 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 22:12:31 +0000 (14:12 -0800)
commitf6910f072a4117da442ca30d0358f6f79380667e
tree3748c104a0368892c30d71f503b682a1a3ea5c66
parentca5be008bc55a5190171d91994c3251fddb4d8d9
nir/builder: Add a load_system_value helper

While we're at it, go ahead and make nir_lower_clip use it.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/nir_builder.h
src/glsl/nir/nir_lower_clip.c