i965: Provide a context flag to let us enable fast clear
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 7 Jul 2014 23:27:31 +0000 (16:27 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 15 Aug 2014 17:33:41 +0000 (10:33 -0700)
commitcf89b29d2f87be8ca437049e5cf3df9f54a806b2
tree663193c7a704f14713820c48150e93a86f383f6e
parent1a05dcb349514ba3287cdfec89db9ddf951aaae8
i965: Provide a context flag to let us enable fast clear

GEN7+ has the fast clear functionality, which lets us clear the color
buffers using the MCS and a scaled down rectangle.  To enable this
we have to set the appropriate bits in the 3DSTATE_PS package.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen7_wm_state.c
src/mesa/drivers/dri/i965/gen8_ps_state.c