nir: Add nir_builder support for individual system value loads.
authorEric Anholt <eric@anholt.net>
Sat, 6 Aug 2016 00:10:18 +0000 (17:10 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 19 Aug 2016 20:11:36 +0000 (13:11 -0700)
commitc35f9792202c4450d19c5616e2a38b9e81e418fe
tree58ac7d76a5932a8dff9e3afe1828a30dae4eddd1
parent24728637e2c006012e4c0a3d87629b53beaddd3b
nir: Add nir_builder support for individual system value loads.

The previous nir_load_system_value(b, nir_intrinsic_load_whatever), 0) was
rather verbose, when system values should be easy to generate.

The index is left out because only one system value had an index included
in it.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_builder.h
src/compiler/nir/nir_intrinsics.h
src/compiler/nir/nir_lower_system_values.c
src/compiler/nir/nir_lower_two_sided_color.c
src/mesa/drivers/dri/i965/blorp_blit.c
src/mesa/drivers/dri/i965/brw_nir_intrinsics.c