prog_to_nir: Use a variable for uniform data
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 19 May 2015 23:25:02 +0000 (16:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 May 2015 19:09:08 +0000 (12:09 -0700)
commit58aed1031d40e62c9f41f7c512b3165dd5913d1e
tree2dd9c1e7d1229bff9d51aa6ff6d8f3c31cc23f09
parentc783fd476c61fae41bddead4e47740e23d0cf2eb
prog_to_nir: Use a variable for uniform data

Previously, the prog_to_nir pass was directly generating uniform load/store
intrinsics.  This converts it to use a single giant "parameters" variable
and we now depend on lowering to get the uniform load/store intrinsics.
One advantage of this is that we now have one code-path after we do the
initial conversion into NIR.

No shader-db changes.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/program/prog_to_nir.c