i965/blorp: Optimize manual_blend() for compressed multisampled surfaces.
authorPaul Berry <stereotype441@gmail.com>
Mon, 9 Jul 2012 18:10:52 +0000 (11:10 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 20 Jul 2012 16:35:37 +0000 (09:35 -0700)
commitf91b4d92b97664e6354f66138705e93bec363ba0
treeaddd886db17a102421be97267acb57efbfccaab6
parente5d983267a98bf9f73f0ea981eaca339b975a8db
i965/blorp: Optimize manual_blend() for compressed multisampled surfaces.

When downsampling a compressed multisampled surface, we can take a
shortcut to downsample any pixels that were completely covered by a
single primitive.  In this case, the first color value we fetch is the
correct final color for the downsampled pixel, so we can skip the rest
of the blending operation.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp