i965/msaa: Set KILL_ENABLE when GL_ALPHA_TO_COVERAGE enabled.
authorPaul Berry <stereotype441@gmail.com>
Mon, 25 Jun 2012 23:57:10 +0000 (16:57 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 26 Jun 2012 14:45:54 +0000 (07:45 -0700)
commit6c355cca9149e43850cf27f2d0821fab1e7a69f5
tree16e3199f0a83a6547f4456f1cfe224e23d150a90
parentbc53e14d98de11593788d302c0bb198e3a2097a4
i965/msaa: Set KILL_ENABLE when GL_ALPHA_TO_COVERAGE enabled.

i965 hardware needs to be informed of situations in which it's
possible for pixels (or samples) to be discarded for reasons other
than depth/stencil testing (e.g. due to an explicit "discard" in the
fragment shader).  One of these situations is when
GL_ALPHA_TO_COVERAGE is enabled, since that can cause samples to be
discarded by the color calculator when the pixel's alpha value is less
than 1.0.

Without this patch, GL_ALPHA_TO_COVERAGE does not take effect on depth
buffers.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/gen6_wm_state.c
src/mesa/drivers/dri/i965/gen7_wm_state.c