Shawn Chang said:Even if the drawcall of the alpha test is occluded, the occluded part of the fragments will not be rejected by earlyz, right? Because the alpha test will make the whole drawcall use late z?
Early ZS is two separable operations - test and update. Geometry with a fixed depth and variable coverage can do an early test, but must do a late update.
Shawn Chang said:How about the earlyz of subsequent drawcalls? Can they use the z of previous alpha test drawcall to reject fragments by earlyz?
I can't really disclose how the hardware works internally - all of the options that you mention are valid options for dependent ZS operations.
Kind regards, Pete