Paul Berry <stereotype...@gmail.com> writes:

> 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.

Nice catch!

However, isn't the issue really that we're incorrectly setting
needs_depth_resolve on layers/levels of the referenced mt that we're not
actually changing hiz state for, since they didn't get cleared?  It
seems like this fixes the current issue, but leaves that bug in place.

Attachment: pgpXXq58KW9uK.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to