Primitive block generator for graphics processing systems
Abstract
Methods and primitive block generators for generating primitive blocks in a graphics processing system. The methods include receiving transformed position data for a current primitive, the transformed position data indicating a position of the current primitive in rendering space; determining a distance between the position of the current primitive and a position of a current primitive block based on the transformed position data for the current primitive; determining whether to add the current primitive to the current primitive block based on the distance and a fullness of the current primitive block; in response to determining that the current primitive is to be added to the current primitive block, adding the current primitive to the current primitive block; and in response to determining that the current primitive is not to be added to the current primitive block, flushing the current primitive block and adding the current primitive to a new current primitive block.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 46 · Forward citations: 0.
Claims (20 — 2 Independent, 18 Dependent)
- Claim 1Independent Claim
A method of generating primitive blocks at a primitive block generator in a graphics processing system, the primitive block generator comprising a data store for storing a current primitive block to which primitives can be added, the method comprising: (a) determining one or more distance metrics that indicate a distance between a spatial position of a current primitive in a rendering space and a spatial position of the current primitive block in the rendering space, the spatial position of the current primitive block in the rendering space based on a spatial position of primitives that form the current primitive block; (b) determining a fullness of the current primitive block based on at least one of: (i) a number of primitives in the current primitive block compared to a maximum number of primitives, and (ii) where each primitive is defined by one or more vertices, a number of vertices in the current primitive block compared to a maximum number of vertices; (c) dynamically selecting a set of one or more distance thresholds based on the fullness of the current primitive block, the set of one or more distance thresholds comprising a distance threshold for each of the one or more distance metrics; (d) determining whether to add the current primitive to the current primitive block based on a comparison of each of the one or more distance metrics to the corresponding distance threshold of the set of one or more distance thresholds; and (e) in response to determining that the current primitive is to be added to the current primitive block, adding the current primitive to the current primitive block.
- Claim 2Depends on #1
The method of claim 1, wherein the data store is further for storing another current primitive block to which primitives can be added, and the method further comprises performing (a) to (d) for the other current primitive block, and in response to determining that the current primitive is to be added to the current primitive block and the other current primitive block, only adding the current primitive to the current primitive block.
- Claim 3Depends on #1
The method of claim 1, wherein the data store is further for storing another current primitive block to which primitives can be added, and the method further comprises performing (a) to (d) for the other current primitive block, and in response to determining that the current primitive is to be added to the current primitive block and the other current primitive block, merging the current primitive block and the other current primitive block.
- Claim 4Depends on #1
The method of claim 1, wherein selecting the set of one or more distance thresholds based on the fullness of the current primitive block comprises, when the current primitive block has a first fullness level, selecting a first set of one or more distance thresholds, and, when the current primitive block has a second fullness level that is higher than the first fullness level, selecting a second set of one or more distance thresholds that are lower than the first set of one or more distance thresholds.
- Claim 5Depends on #1
The method of claim 1, wherein there are a plurality of predetermined sets of one or more distance thresholds each associated with a different range of fullness levels and selecting the set of one or more distance thresholds based on the fullness of the current primitive block comprises selecting the predetermined set of one or more distance thresholds of the plurality of predetermined sets of one or more distance thresholds associated with a fullness level for the current primitive block.
- Claim 6Depends on #5
The method of claim 5, wherein the plurality of predetermined sets of one or more distance thresholds comprises a first predetermined set of one or more distance thresholds for when the current primitive block is less than a quarter full, a second predetermined set of one or more distance thresholds for when the current primitive block is at least a quarter full and less than half full, a third predetermined set of one or more distance thresholds for when the current primitive block is at least half full and less than three quarters full, and a fourth predetermined set of one or more distance thresholds for when the current primitive block is at least three quarters full.
- Claim 7Depends on #1
The method of claim 1, wherein it is determined that the current primitive is not to be added to the current primitive block if at least one of the one or more distance metrics exceeds the corresponding distance threshold of the set of one or more distance thresholds.
- Claim 8Depends on #1
The method of claim 1, wherein it is determined that the current primitive is not to be added to the current primitive block only if each of the one or more distance metrics exceeds the corresponding distance threshold of the set of one or more distance thresholds.
- Claim 9Depends on #1
The method of claim 1, wherein at least one of the one or more distance metrics is based on a bounding box for the current primitive block with the current primitive added thereto and a bounding box for the current primitive block without the current primitive added thereto.
- Claim 10Depends on #9
The method of claim 9, wherein at least one of the one or more distance metrics is based on at least one of: (i) a ratio of a first dimension of the bounding box for the current primitive block with the current primitive added thereto and the first dimension of the bounding box for the current primitive block without the current primitive added thereto; (ii) a ratio of a second dimension of the bounding box for the current primitive block with the current primitive added thereto and the second dimension of the bounding box of the current primitive block without the current primitive added thereto; and (iii) a ratio of an area of the bounding box for the current primitive block with the current primitive added thereto and an area of the bounding box for the current primitive block without the current primitive added thereto.
- Claim 11Depends on #9
The method of claim 9, wherein the rendering space is divided into a plurality of tiles and the bounding boxes have a per tile resolution.
- Claim 12Depends on #1
The method of claim 1, wherein the rendering space is divided into a plurality of tiles, and at least one of the one or more distance metrics is based on a rendering order of the plurality of tiles.
- Claim 13Depends on #1
The method of claim 1, wherein the one or more distance metrics comprises a single distance metric.
- Claim 14Depends on #1
The method of claim 1, wherein the one or more distance metrics comprises a plurality of distance metrics.
- Claim 15Depends on #1
The method of claim 1, further comprising: subsequent to adding the current primitive to the current primitive block, determining whether the current primitive block is full; and in response to determining that the current primitive block is full, outputting the current primitive block.
- Claim 16Depends on #1
The method of claim 1, wherein each primitive is defined by one or more vertices and in response to determining that the current primitive is not to be added to the current primitive block, determining whether the current primitive shares at least one vertex with the current primitive block and outputting the current primitive block if it is determined that the current primitive block does not share at least one vertex with the current primitive block.
- Claim 17Independent Claim
A primitive block generator for a graphics processing system for generating primitive blocks from a plurality of primitives, the primitive block generator comprising: a data store configured to store a current primitive block to which primitives can be added; and block allocation logic comprising: distance calculation logic configured to determine one or more distance metrics that indicate a distance between a spatial position of a current primitive in a rendering space and a spatial position of the current primitive block in the rendering space, the spatial position of the current primitive block in the rendering space based on a spatial position of primitives that form the current primitive block; fullness determination logic configured to determine a fullness of the current primitive block based on at least one of: (i) a number of primitives in the current primitive block compared to a maximum number of primitives, and (ii) where each primitive is defined by one or more vertices, a number of vertices in the current primitive block compared to a maximum number of vertices; distance threshold selection logic configured to dynamically select a set of one or more distance thresholds based on the fullness of the current primitive block, the set of one or more distance thresholds comprising a distance threshold for each of the one or more distance metrics; and comparison logic configured to: determine whether to add the current primitive to the current primitive block based on a comparison of each of the one or more distance metrics to the corresponding distance threshold of the set of one or more distance thresholds; and in response to determining that the current primitive is to be added to the current primitive block, cause the current primitive to be added to the current primitive block.
- Claim 18Depends on #17
A graphics processing system comprising the primitive block generator as set forth in claim 17.
- Claim 19Depends on #1
A non-transitory computer readable storage medium having stored thereon computer readable instructions that, when executed at a computer system, cause the computer system to perform the method as set forth in claim 1.
- Claim 20Depends on #17
A non-transitory computer readable storage medium having stored thereon a computer readable dataset description of the primitive block generator as set forth in claim 17 that, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit embodying the primitive block generator.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS AND CLAIM OF PRIORITY This application is a continuation under 35 U.S.C. 120 of copending application Ser. No. 18/071,095 filed Nov. 29, 2022, now U.S. Pat. No. 11,836,849, which is a continuation of prior application Ser. No. 17/536,671 filed Nov. 29, 2021, now U.S. Pat. No. 11,527,039, which is a continuation of prior application Ser. No. 16/724,239 filed Dec. 21, 2019, now U.S. Pat. No. 11,217,007, which claims foreign priority under 35 U.S.C. 119 from United Kingdom Application Nos. 1821133.4, 1821139.1, and 1821142.5, all filed Dec. 21, 2018, the contents of which are incorporated by reference herein in their entirety. BACKGROUND Graphics processing systems are configured to receive graphics data, e.g. from an application (e.g. a game application) running on a computer system, and to render an image from the graphics data to provide a rendering output. For example, an application may generate a 3D model of a scene and output geometry data representing the objects in the scene. In particular, the application may divide each object into a plurality of primitives (i.e. simple geometric shapes, such as, but not limited to rectangles, triangles, lines and points to which a texture can be applied) which are defined by the position of one or more vertices. In these cases, the geometry data output by the application may include information identifying each vertex (e.g. the coordinates of the vertex in world space) and information indicating the primitives formed by the vertices. The graphics processing system then converts the received geometry data into an image that may be displayed on the screen. A graphics processing system may, for example, implement immediate mode rendering (IMR) or tile-based rendering (TBR). In IMR the entire scene is rendered as a whole. In contrast, in TBR a scene is rendered using a rendering space which is divided into subsections, which are referred to as tiles, wherein at least a portion of the rend
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (46)
| Patent | Title | Year | Citations |
|---|