[Mesa-dev] [PATCH] i965/msaa: Only do multisample rasterization if GL_MULTISAMPLE enabled.

Eric Anholt eric at anholt.net
Tue Jun 19 10:23:02 PDT 2012


On Tue, 19 Jun 2012 08:16:22 -0700, Paul Berry <stereotype441 at gmail.com> wrote:
> From the GL 3.0 spec (p.116):
> 
>     "Multisample rasterization is enabled or disabled by calling
>     Enable or Disable with the symbolic constant MULTISAMPLE."
> 
> Elsewhere in the spec, where multisample rasterization is described
> (sections 3.4.3, 3.5.4, and 3.6.6), the following text is consistently
> used:
> 
>     "If MULTISAMPLE is enabled, and the value of SAMPLE_BUFFERS is
>     one, then..."
> 
> So, in other words, disabling GL_MULTISAMPLE should prevent
> multisample rasterization from occurring, even if the draw framebuffer
> is multisampled.  This patch implements that behaviour by setting the
> WM and SF stage's "multisample rasterization mode" to
> MSRAST_ON_PATTERN only when the draw framebuffer is multisampled *and*
> GL_MULTISAMPLE is enabled.

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120619/7ca05d9e/attachment.pgp>


More information about the mesa-dev mailing list