i965: don't clear resolve map when doing fast depth clears.
authorPaul Berry <stereotype441@gmail.com>
Wed, 22 Aug 2012 15:02:39 +0000 (08:02 -0700)
committerPaul Berry <stereotype441@gmail.com>
Fri, 24 Aug 2012 16:59:27 +0000 (09:59 -0700)
commit5133bd6585552a5708b294180fa9a561bf7564a6
tree8d069d53873a23c4b00e3bc64e22bc11ec635115
parent4b8b6f385e855ecb6da0b7dea56e70e69d1517b9
i965: don't clear resolve map when doing fast depth clears.

Previously, when performing a fast depth clear, we would also clear
the miptree's resolve map.  This destroyed important information,
since the resolve map contains information about needed resolves for
all levels and layers of the miptree, whereas a depth clear only
applies to a single level/layer combination at a time.  As a result,
resolves would sometimes fail to occur, leading to incorrect
rendering.

Fixes rendering artifacts with shadow maps in Unigine Heaven and
Unigine Sanctuary.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50270

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_clear.c