i965/fs: Rework uniform handling
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Aug 2015 19:00:15 +0000 (12:00 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 25 Aug 2015 17:18:27 +0000 (10:18 -0700)
commit259f7291de2387aa3ac5f856b39b7b934a1d8e7d
tree5575e22eab317ece47aa781da92f8478f7030a48
parentcfa056c6a5eadf87f92a71346c0dddd2a080e302
i965/fs: Rework uniform handling

Previously, we treated the entire UNIFORM file as if it had two elements:
One for direct things and one for indirect.  This is substantially
different from how the old visitor code handled it where each element was
effectively its own uniform.  This commit makes the NIR path more like the
old ir_visitor path where each uniform is separate.  This should allow us
to more easily make decisions about what to push.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_nir.c