[Mesa-dev] [PATCH 08/16] freedreno: a2xx: enable early-Z testing

Marek Olšák maraeo at gmail.com
Wed Dec 19 21:31:32 UTC 2018


On Wed, Dec 19, 2018, 3:32 PM Eric Anholt <eric at anholt.net wrote:

> Jonathan marek <jonathan at marek.ca> writes:
>
> > Hi,
> >
> > I didn't verify it, but both r600 and a3xx disable earlyZ when alpha
> > test is enabled, so this is almost certainly right.
> >
> > We don't need to worry about the shader writing Z, it is not part of
> > OpenGL ES 2.0 and not implemented by the driver (although the hardware
> > should allow it).
> >
> > Why should we need to check if the shader does discards?
>
> On a lot of hardware, early Z also does the depth write at that time.  I
> see a3xx disables EZ when discards are present.  (There is a piglit test
> for this)
>

Yes, kill/discard disables early Z/S.

Marek

_______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181219/afa78b39/attachment.html>


More information about the mesa-dev mailing list