主权项 |
1. An apparatus for processing graphics primitives for display, comprising, in sequence: rasterization circuitry, depth testing circuitry and rendering circuitry,
the rasterization circuitry configured to perform rasterization operations on the graphics primitives to generate graphics fragments; the depth testing circuitry configured to perform depth testing with respect to a selected graphics fragment of the graphics fragments to determine if the selected graphics fragment would be obscured by at least one other graphics fragment when displayed by comparing a depth comparison function and a depth value associated with the selected graphics fragment with a stored depth value associated with a display location for the selected graphics fragment; and the rendering circuitry configured to receive the graphics fragments and to perform rendering operations on the graphics fragments, wherein the depth testing circuitry is configured to suppress the rendering operations with respect to the selected graphics fragment if the depth testing indicates that the selected graphics fragment would be obscured, wherein the rendering operations performed by the rendering circuitry cause updating of stored depth values associated with display locations for at least some graphics fragments, wherein the depth testing circuitry is configured to store an update indication in dependence on a received depth comparison function, wherein the update indication shows a possible change direction due to the updating for a stored depth value which depends on that received depth comparison function, and wherein the depth testing circuitry is configured to perform the depth testing with respect to the selected graphics fragment using the possible change direction shown by the update indication to modify the depth comparison function to allow for the updating of the stored depth value by the rendering operations. |