i965/reg: Make brw_sr0_reg take a subnr and return a vec1 reg
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 14 Sep 2016 22:09:32 +0000 (15:09 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 21 Sep 2016 10:45:45 +0000 (13:45 +0300)
commita2392cee48076f1fe6feab7d49214990cfa6a551
tree3cc19074b4b20ac4d83590d381cdb56fe662a393
parentb8162d6b6e2600cf52eddeceb4c44d250d4b823e
i965/reg: Make brw_sr0_reg take a subnr and return a vec1 reg

The state register sr0 is really a collection of dwords not a SIMD8
anything.  It's much more convenient for brw_sr0_reg to return the
particular dword you're looking for rather than a giant blob you have to
massage into what you want.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
[ Francisco Jerez: Trivial simplification of brw_ud1_reg(). ]
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_reg.h