[Mesa-dev] [PATCH] i965/msaa: Disable alpha-to-{coverage, one} when drawbuffer zero is in integer format
Chad Versace
chad.versace at linux.intel.com
Wed Jul 18 07:57:06 PDT 2012
On 07/17/2012 03:16 PM, Anuj Phogat wrote:
> OpenGL specification 3.3 (page 196), section 4.1.3 says:
> If drawbuffer zero is not NONE and the buffer it references has an
> integer format, the SAMPLE_ALPHA_TO_COVERAGE and SAMPLE_ALPHA_TO_ONE
> operations are skipped."
> This should work properly even if there are other draw buffers that
> are not in integer format.
>
> This patch makes following piglit tests pass on mesa:
> int-draw-buffers-alpha-to-coverage
> int-draw-buffers-alpha-to-one
>
> Note: Patches for these piglit tests are under review on piglit mailing
> list.
>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
> src/mesa/drivers/dri/i965/gen6_cc.c | 29 ++++++++++++++++++++++-------
> 1 files changed, 22 insertions(+), 7 deletions(-)
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
More information about the mesa-dev
mailing list