i965 gen7: use SURFACE_STATE fields to select render level/layer
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 19 Apr 2013 08:13:31 +0000 (01:13 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 3 Jun 2013 03:39:38 +0000 (20:39 -0700)
commitc754f7a8fd53906acb9ef6ade715481a2c9f17de
treefdbff9ce0f50e2ce703aaa8d0871ed5f5affe63d
parent6bfd897fc432590ea50231845608239fb1d60114
i965 gen7: use SURFACE_STATE fields to select render level/layer

Rather than pointing the surface_state directly at a single
sub-image of the texture for rendering, we now point the
surface_state at the top level of the texture, and configure
the surface_state as needed based on this.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c