i965/msaa: Implement manual blending operation for Gen7.
authorPaul Berry <stereotype441@gmail.com>
Wed, 9 May 2012 14:20:10 +0000 (07:20 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 25 May 2012 15:45:11 +0000 (08:45 -0700)
commit4725ba03cae87ddbf1fa10feaca3d42f24115f91
tree524f45407a2aa40c515dd52870b7b19036ea9a05
parent8b1f467cce34340637e9baca4847fc5273cf7541
i965/msaa: Implement manual blending operation for Gen7.

On Gen6, the blending necessary to blit an MSAA surface to a non-MSAA
surface could be accomplished with a single texturing operation.  On
Gen7, the WM program must fetch each sample and blend them together
manually.  From the Bspec (Shared Functions/Messages/Initiating
Message/Message Types/sample):

    [DevIVB+]:Number of Multisamples on the associated surface must be
    MULTISAMPLECOUNT_1.

This patch implements the manual blend operation.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp_blit.cpp