OSDN Git Service

mesa/main: consider multisampling enabled when number of samples == 1
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 15 Nov 2016 13:37:05 +0000 (14:37 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 18 Nov 2016 08:48:14 +0000 (09:48 +0100)
commitadba706122ee033a4f8023bd309b73b0a5c52105
treef185cf4bdddd0906708bc16bea59d7b616542366
parent14af96007f42acd7f8dd8569b1a5cee1d47c08a8
mesa/main: consider multisampling enabled when number of samples == 1

There are some differences between how non-multisampled framebuffers (i.e.
samples == 0) and multisampled framebuffers with a single sample should be
treated.  For example, alpha to coverage and writing to gl_SampleMask has an
effect with single-sample multisample framebuffers, but not on
non-multisample framebuffers.

This fixes GL45-CTS.sample_variables.mask.*.samples_1.* at least for
Gallium drivers (and possibly others, though at least radeonsi needs an
additional fix).

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/mesa/main/framebuffer.c