i965: Use the state base address to avoid relocations.
authorEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 07:09:14 +0000 (00:09 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 07:16:15 +0000 (00:16 -0700)
commit27bc2de5461c1d66c8e005b35de77e7b9e214754
tree760e7a257138259a4df380fd3579f4b13bd6bd9d
parent8ad3fdc9678866b40f3d9faaaf7c6333d388907f
i965: Use the state base address to avoid relocations.

This makes the binding table code simpler, and is required for gen6,
which requires binding table addresses to be under 64k offset from the
surface state base addr.

No significant change in performance on firefox-talos-gfx.
src/mesa/drivers/dri/i965/brw_misc_state.c
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/brw_wm_surface_state.c