i965: Mark needed downsamples for msaa winsys buffers
authorChad Versace <chad.versace@linux.intel.com>
Thu, 26 Jul 2012 23:47:35 +0000 (16:47 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 7 Aug 2012 16:30:33 +0000 (09:30 -0700)
commit6b56140b4bafcef8bea5ca67cb31023a533c3bd4
treed8906621ce06cff8569fdd802dcb06e1af143fad
parentd3746354fbfadf821dc108e072d86b5329737444
i965: Mark needed downsamples for msaa winsys buffers

Add function intel_renderbuffer_set_needs_downsample. It is a no-op
except on multisample winsys buffers shared with DRI2.

Mark the needed downsamples with the new function at two locations:
    - Immediately after drawing is complete.
    - After blitting.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp
src/mesa/drivers/dri/i965/brw_draw.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h