OSDN Git Service

i965: fix alpha test for MRT
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 1 Jul 2013 11:30:55 +0000 (23:30 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Sat, 6 Jul 2013 00:41:54 +0000 (12:41 +1200)
commit1415a1884c59aff37d0f1a53447ef389dd9f9b39
tree978bff42ccd93554de68f87da561f6b7a2bd9510
parent9ef49cfd841a8cbf280a1a2b66ce90f710e44687
i965: fix alpha test for MRT

Include src0 alpha in the RT write message when using MRT, so it is used
for the alpha test instead of the normal per-RT alpha value.

Fixes broken rendering in Dota2 under Wine [FDO #62647].

No Piglit regressions on Ivybridge.

V2: reuse (and simplify) existing sample_alpha_to_coverage flag in
the FS key, rather than adding another redundant one.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewd-by: Paul Berry <stereotype441@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62647
NOTE: This is a candidate for the stable branches.
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_wm.c
src/mesa/drivers/dri/i965/brw_wm.h