i965/fs: Communicate the pull constant block read parameters through fs_regs.
authorEric Anholt <eric@anholt.net>
Wed, 20 Jun 2012 22:41:14 +0000 (15:41 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Aug 2012 20:54:51 +0000 (13:54 -0700)
commit454dc83f66643e66ea7ee9117368211f0cfe84d7
tree61aa70e2a1377cfdbc5405be705e3a9fbdbc6b76
parent25d2bf3845e9a6faaef8d808c1255ec57dc71dba
i965/fs: Communicate the pull constant block read parameters through fs_regs.

I wanted to add the surface index as a variable value for UBO support,
and a reg seemed like the obvious way to go.  This exposes more of the
information to CSE, which we'll probably want to apply to pull
constant loads for UBOs eventually (you might access 4 floats in a
row, each of which would produce an oword block read of the same
block).

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