i965/msaa: Implement glSampleCoverage.
authorPaul Berry <stereotype441@gmail.com>
Sat, 23 Jun 2012 03:45:49 +0000 (20:45 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 26 Jun 2012 14:45:54 +0000 (07:45 -0700)
commit9ea60ce58f8494e0b79771f93227f4b8181731de
tree438216882f43955a524eb736732640a0b03f92bb
parent4bde1ba7fb6253e80197d3645b23893424ef756b
i965/msaa: Implement glSampleCoverage.

This patch enables glSampleCoverage() functionality, which allows the
client program to specify that only a portion of the samples be lit up
when performing multisampled rendering.  i965 supports
glSampleCoverage() through the 3DSTATE_SAMPLE_MASK command packet,
which allows the driver to specify a bitfield indicating which samples
to light up.

Fixes piglit tests "EXT_framebuffer_multisample/sample-coverage {2,4}
{inverted,non-inverted}".

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/gen6_blorp.cpp
src/mesa/drivers/dri/i965/gen6_multisample_state.c
src/mesa/drivers/dri/i965/gen7_blorp.cpp