i965: Assign PS kernel start pointers when we decide which kernels to use
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Jul 2014 21:43:30 +0000 (14:43 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Aug 2014 20:57:26 +0000 (13:57 -0700)
commit416dd873e8e0cbca1477344a94a7c2e0c9a6c25b
tree5dcf1221d350c1d5bd2b109f1c6fdc272ee21db0
parentd7d8260f70326cd294715203dae8a8f0150680c1
i965: Assign PS kernel start pointers when we decide which kernels to use

Right now we decide which kernels to use and the GRF start offsets in
one place and emit the kernel pointers later.  The logic of how to map
8, 16 and 32 kernels to kernel start pointers follows the same logic as which
GRF start offsets to use, so lets figure out these two things in one place.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c