Paul Berry <stereotype...@gmail.com> writes: > Since apps typically begin rendering with a call to glClear(), it is > likely that when brw_workaround_depthstencil_alignment() moves a > miplevel to a temporary buffer, it can avoid doing a blit, since the > contents of the miplevel are about to be erased. > > This patch adds the necessary plumbing to determine when > brw_workaround_depthstencil_alignment() is being called as a > consequence of glClear(), and avoids the unnecessary blit when it is > safe to do so. > > Reviewed-by: Chad Versace <chad.vers...@linux.intel.com> > Reviewed-by: Kenneth Graunke <kenn...@whitecape.org> > > v2: Eliminate unnecessary call to _mesa_is_depthstencil_format(). Fix > handling of depth buffer in depth/stencil format. > > v3: Use correct bitfields for clear_mask. Fix handling of depth > buffer in depth/stencil format when hardware uses separate stencil. > When invalidating, make sure we still reassociate the image to the new > miptree.
Reviewed-by: Eric Anholt <e...@anholt.net>
pgpHmdVU47Gge.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev