Method of and apparatus for processing graphics
AssigneeArm Limited
InventorFrode Heggelund
Life of this patent
Estimating the term…
Abstract
When performing conservative rasterisation in a graphics processing pipeline, modified edge information that accounts for an error in the dimensions of a primitive is determined by a primitive set-up stage. That modified edge information is then used by a rasterisation stage to determine whether the primitive covers one or more sampling points associated with pixels to be displayed. The same modified edge information can also be used to determine if the pixels are fully covered by the primitive irrespective of any rounding effects (errors) in the position of the (vertices of the) primitive.
Claims19
A method of operating a graphics processing pipeline that includes a plurality of processing stages including a primitive set-up stage and a rasterisation stage, the method comprising:
- the primitive set-up stage receiving information representing vertices defining a primitive to be rendered by the graphics processing pipeline and determining therefrom edge information representing the positions of an edge or edges of the primitive;
- the primitive set-up stage using the determined edge information to determine, for the primitive, modified edge information representing modified positions for the edge or edges of the primitive, wherein the modified positions for the edge or edges of the primitive are positions of the edge or edges of an expanded version of the primitive, the edge or edges of the expanded version of the primitive being shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive;
- and
- the rasterisation stage performing conservative rasterisation testing for the primitive, wherein the conservative rasterisation testing comprises inner coverage conservative rasterisation testing for the primitive and outer coverage conservative rasterisation testing for the primitive that both use the modified edge information for the primitive, such that the outer coverage conservative rasterisation testing and the inner coverage conservative rasterisation testing are both performed by testing the positions of the edge or edges of the expanded version of the primitive that are shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive, and wherein the rasterisation stage performing conservative rasterisation for the primitive comprises, for the inner coverage conservative rasterisation testing, determining, for at least one region of a graphics render output being generated, whether the primitive covers the region of the render output by:
- testing said edge or edges of the expanded version of the primitive against a modified group of one or more sampling points, wherein the modified group of one or more sampling points comprises an offset sampling point having a position that has been modified as compared to the position of a sampling point of an unmodified group of one or more sampling points from a sampling point grid representing the render output being generated that represents the region of the render output.
A graphics processor comprising:
- primitive set-up circuitry configured to:
- receive information representing vertices defining a primitive to be rendered by the graphics processing pipeline and to determine therefrom edge information representing the position of the edges of the primitive;
- and
- use the determined edge information to determine, for the primitive, modified edge information representing modified positions for the edge or edges of the primitive, wherein the modified positions for the edge or edges of the primitive are positions of the edge or edges of an expanded version of the primitive, the edge or edges of the expanded version of the primitive being shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive;
- and
- rasterisation circuitry configured to both:
- use the modified edge information for the primitive to perform inner coverage conservative rasterisation testing, such that the inner coverage conservative rasterisation testing is performed by testing the positions of the edge or edges of the expanded version of the primitive that are shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive;
- and
- use the modified edge information for the primitive to perform outer coverage conservative rasterisation testing, such that the outer coverage conservative rasterisation testing is performed by testing the positions of the edge or edges of the expanded version of the primitive that are shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive;
- wherein the rasterisation circuitry is configured to use the modified edge information for the primitive to, for the inner coverage conservative rasterisation testing, determine, for at least one region of a graphics render output being generated, whether the primitive covers the region of the render output by:
- testing said edge or edges of the expanded version of the primitive against a modified group of one or more sampling points, wherein the modified group of one or more sampling points comprises an offset sampling point having a position that has been modified as compared to the position of a sampling point of an unmodified group of one or more sampling points from a sampling point grid representing the render output being generated that represents the region of the render output.
A non-transitory computer readable storage medium storing computer software code which when executing on a processor performs a method of operating a graphics processing pipeline that includes a plurality of processing stages including a primitive set-up stage and a rasterisation stage, the method comprising:
- the primitive set-up stage receiving information representing vertices defining a primitive to be rendered by the graphics processing pipeline and determining therefrom edge information representing the positions of an edge or edges of the primitive;
- the primitive set-up stage using the determined edge information to determine, for the primitive, modified edge information representing modified positions for the edge or edges of the primitive, wherein the modified positions for the edge or edges of the primitive are positions of the edge or edges of an expanded version of the primitive, the edge or edges of the expanded version of the primitive being shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive;
- and
- the rasterisation stage performing conservative rasterisation testing for the primitive, wherein the conservative rasterisation testing comprises inner coverage conservative rasterisation testing for the primitive and outer coverage conservative rasterisation testing for the primitive that both use the modified edge information for the primitive, such that the outer coverage conservative rasterisation testing and the inner coverage conservative rasterisation testing are both performed by testing the positions of the edge or edges of the expanded version of the primitive that are shifted outward, away from the centre of the primitive, relative to the edge or edges of the primitive, and wherein the rasterisation stage performing conservative rasterisation for the primitive comprises, for the inner coverage conservative rasterisation testing, determining, for at least one region of a graphics render output being generated, whether the primitive covers the region of the render output by:
- testing said edge or edges of the expanded version of the primitive against a modified group of one or more sampling points, wherein the modified group of one or more sampling points comprises an offset sampling point having a position that has been modified as compared to the position of a sampling point of an unmodified group of one or more sampling points from a sampling point grid representing the render output being generated that represents the region of the render output.
Dependencies are inferred from the claim text.