Memory management for multicore 3-D graphics rendering
Abstract
A multicore graphics rendering system includes a plurality of cores configured to implement tile-based rendering of a stream of primitives. First cores are configured to process groups of primitives, to produce transformed geometry data. The graphics rendering system uses at least one virtualised memory space. At least one virtualised memory space is segmented such that the first cores are allocated respective non-overlapping virtual address ranges in the space, the virtual address ranges being associated with different entries in a top level of the index. The top level of the hierarchical index is pre-allocated, and each core is primed by providing it with said top level of the hierarchical index.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 39 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A multicore graphics rendering system, comprising a plurality of cores configured to implement tile-based rendering of a stream of primitives, wherein first cores of the plurality of cores are configured to perform geometry processing work, and second cores of the plurality of cores are configured to perform fragment processing work, wherein each first core is configured to process groups of primitives, to produce transformed geometry data describing, for each of a plurality of tiles, the primitives processed by that first core that are present in that tile, each group being associated with a group index, the group indices defining an ordering of the groups in the stream of primitives, the first cores being configured to store in a memory the transformed geometry data that they produce, each second core being configured to perform fragment processing for one or more of the tiles, wherein each second core is configured to, for each tile to be processed, read from the memory the transfor
- Claim 2Depends on #1
The graphics rendering system of claim 1, wherein: the allocation manager maintains an allocation list (ALIST), storing, for each portion of memory written to by the first cores, an indication of a part of the frame with which that portion is associated, and the latest group index of the transformed geometry data written to the portion; the second cores are configured to execute a partial render, comprising performing fragment processing for the primitives in a renderable range of groups, the renderable range starting with a starting group and ending with an ending group, wherein, before executing the partial render, the geometry processing work has been completed for every group ahead of the ending group in the ordering defined by the group indices; and the allocation manager is configured to scan the ALIST to identify portions of memory that have been fully consumed by the second cores performing fragment processing; wherein the scan comprises, for each portion of memory: comparing t
- Claim 3Depends on #2
The graphics rendering system of claim 2, wherein the allocation manager is configured to scan the ALIST: (i) after completion of the partial render; and/or (ii) after completion of at least some tiles of the partial render, optionally after completion of a predetermined number of rows of tiles.
- Claim 4Depends on #2
The graphics rendering system of claim 2, wherein the allocation manager is further configured to allocate portions of memory for storing the ALIST, wherein, following the scan, the allocation manager is configured to compact the ALIST, such that ALIST entries identified in the scan are invalidated and entries other than those identified in the scan are consolidated into a consecutive set of entries.
- Claim 5Depends on #4
The graphics rendering system of claim 4, wherein the allocation manager is further configured to, after compacting the ALIST, free any portions of memory used to store the ALIST that are no longer required following the consolidation.
- Claim 6Depends on #2
The graphics rendering system of claim 2, wherein: the allocation manager is configured to record the portions of memory allocated to the MMUs for the hierarchical index in an MMU list (MLIST); the MLIST comprises a plurality of entries, each entry being associated with a respective portion of the hierarchical index, wherein each entry includes an indication of the portion of virtual memory that is indexed by that portion of the hierarchical index; and the allocation manager is configured to, after scanning the ALIST: identify, from the MLIST, the portions of memory associated with indexing virtual memory that has been fully consumed by the plurality of second cores performing the fragment processing; and free the identified portions of memory.
- Claim 7Depends on #6
The graphics rendering system of claim 6, wherein the allocation manager is configured to, after freeing the identified portions of memory, compact the MLIST, such that MLIST entries corresponding to the freed portions of memory are invalidated, and the remaining MLIST entries are consolidated into a consecutive set of entries.
- Claim 8Depends on #6
The graphics rendering system of claim 6, wherein each MLIST entry contains any one or any combination of two or more of: an indication of the virtualised memory space to which the memory portion referenced in the MLIST entry pertains; for segmented virtualised spaces containing a plurality of segments, an indication of the segment to which the memory portion referenced in the MLIST entry pertains; an indication of the level of the hierarchical index structure to which the memory portion referenced in the MLIST entry pertains.
Technical Overview & Description
BACKGROUND In computer graphics, “ rendering ” is the process of converting a 3D model, describing a virtual scene, into one or more 2D images, representing a view of the scene from a specific viewpoint (or viewpoints). As this is a computationally intensive process, for typical virtual scenes, it is common to provide a hardware accelerator that is specialised in carrying out the necessary computations. This kind of hardware accelerator is known in the art as a graphics processing unit (GPU). Different GPUs may have different hardware architectures, reflecting different strategies for carrying out the computations necessary for 3D rendering. One exemplary GPU uses a “ tile-based deferred rendering ” (TBDR) pipeline. This approach separates the rendering process into two distinct stages. The first of these two stages — the geometry processing stage (or simply “ geometry processing ” , for short) — involves processing geometry data that describes the 3-D model of the scene. The geometry data is transformed from the 3-D space into the 2-D coordinates of the image, based on the particular viewpoint to be rendered. The output of this stage is transformed geometry, which is stored in a “ parameter buffer ” in so-called “ primitive blocks ” . The fundamental operation in the geometry stage is to work out what primitive shapes fall within each tile. The primitives are most commonly triangles. These triangles join together to form objects. The triangles are described in terms of their vertices (corner points). Each vertex includes positional information (the location of the vertex) and can include additional information, for example, colour. The geometry stage of a rendering operation begins when the GPU receives a draw call from an application driver. The draw call contains instructions for geometry processing tasks (in particular, what triangles to draw) and all of the information needed to carry out the geometry processing. In the second stage, known as “ fragment process
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 (39)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Yu et al;
- “
- A Credit-Based Load-Balance-Aware CTA Scheduling Optimization Scheme in GPGPU
- ”
- ; International Journal of Parallel Programming; vol. 44; No. 1; Aug. 22, 2014; 21 pages.
- Imagination Technologies:
- “
- Tiling positive or how Vulkan maps to PowerVR GPUs
- ”
- ; Retrieved from the Internet: URL:https%3A%2F%2Fblog.imaginationtech.com%2Ftiling-positive-or-how-vulkan-maps-to-powervr-gpus%2F; Mar. 9, 2016; pp. 1-13.