i965: Set Broadwell MOCS values everywhere it's possible.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Mar 2014 00:30:28 +0000 (16:30 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Mar 2014 22:14:08 +0000 (15:14 -0700)
commitee4484be3dc827cf15bcf109f5e680dbf1dfbf34
tree7109825c6c2314f893abca7efc7d06db8706140f
parent1afe3359258a9e89b62c8638761f52d78f6d1cbc
i965: Set Broadwell MOCS values everywhere it's possible.

This patch introduces two pre-canned MOCS values: BDW_MOCS_WB
(write-back, all caches) and BDW_MOCS_WT (write-through, all caches).

We use write-through caching for render targets, and write-back for
all other data.  (At least on Haswell, I believe write-back LLC/eLLC
didn't work for scan-out buffers, while write-through did.)

No performance analysis has been done on the impact of this patch.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/gen8_depth_state.c
src/mesa/drivers/dri/i965/gen8_draw_upload.c
src/mesa/drivers/dri/i965/gen8_misc_state.c
src/mesa/drivers/dri/i965/gen8_sol_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c