nir/builder: Add a load_system_value helper
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 15 Dec 2015 03:51:50 +0000 (19:51 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Dec 2015 18:20:23 +0000 (10:20 -0800)
commitc26e889a44abc10d207915bc56372d91ff30ac1c
tree12ed32588ed4f1a082fc6263b47acc79b77e5114
parentde67456d6d756e23142b9701e38ef5e11c301ae1
nir/builder: Add a load_system_value helper

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

Cc: Rob Clark <robclark@gmail.com>
src/glsl/nir/nir_builder.h
src/glsl/nir/nir_lower_clip.c