nir: Store num_direct_uniforms in the nir_shader.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Apr 2015 00:13:45 +0000 (17:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 11 Apr 2015 18:39:48 +0000 (11:39 -0700)
commitb3e286c4575bf6af343c1a03471fd876cdfb5c43
tree4934c1751fae5ca735d359eeaf573a749c5b784e
parentf41f07f685e7f585e433b5fd1fadf602e74f0f1e
nir: Store num_direct_uniforms in the nir_shader.

Storing this here is pretty sketchy - I don't know if any driver other
than i965 will want to use it.  But this will make it a lot easier to
generate NIR code at link time.  We'll probably rework it anyway.

(Ian suggested making nir_assign_var_locations_scalar_direct_first
 simply modify the nir_shader's fields, rather than passing pointers
 to them.  If this stays long term, we should do that.  But Jason and
 I suspect we'll be reworking this area again in the near future.)

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp