i965: Move the common binding table offset code to brw_shader.cpp.
authorEric Anholt <eric@anholt.net>
Thu, 3 Oct 2013 16:58:43 +0000 (09:58 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 15 Oct 2013 17:18:50 +0000 (10:18 -0700)
commit705a90e30435490c2de84f4f6741cab335fa7608
tree942db192506eb1fde5db1de8f9a7765b71de33f8
parentd395485e1df44853cdf86b0bd46b7af36c7e1c13
i965: Move the common binding table offset code to brw_shader.cpp.

Now that both vec4 and fs are dynamically assigning offsets, a lot of the
code is the same.

v2: Avoid passing around the next offset through the class.  (Review by
    Paul)

Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp