i965: Virtualize emit_buffer_surface_state().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Oct 2013 18:37:06 +0000 (11:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Nov 2013 01:59:39 +0000 (17:59 -0800)
commitba836e02a3f09cdc2188c45b6e409a936a840bea
tree714b136cda43180c8097e21ab0472952c805dc39
parente3854fe194021e61eff70c614550bbfc79d2b22e
i965: Virtualize emit_buffer_surface_state().

This entails adding "mocs" and "rw" parameters to the Gen4-5 version.
I made it actually pay attention to the rw flag (even though it is
always false), but mocs is always ignored.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c