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

Eric Anholt eric at anholt.net
Wed Dec 19 20:32:35 UTC 2018


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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20181219/028ce571/attachment.sig>


More information about the mesa-dev mailing list