i965/gen7+: Ensure that front/back buffers are fast-clear resolved.
authorPaul Berry <stereotype441@gmail.com>
Tue, 7 May 2013 22:38:45 +0000 (15:38 -0700)
committerPaul Berry <stereotype441@gmail.com>
Wed, 12 Jun 2013 18:10:07 +0000 (11:10 -0700)
commite9dfcb38e97ac05023759b749fb6f8f56ab28f57
tree4d7ad503a7833ba8950416b07d47362283ed319e
parent418aecea7d626d57da8987c062aeb3d046c6dd9a
i965/gen7+: Ensure that front/back buffers are fast-clear resolved.

We already had code in intel_downsample_for_dri2_flush() for
downsampling front and back buffers when multisampling was in use.
This patch extends that function to perform fast color clear resolves
when necessary.

To account for the additional functionality, the function is renamed
to simply intel_resolve_for_dri2_flush().

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_screen.c