Graphics processing method and system
By subdividing the rendering space into multiple regions and using a layered tiling method, it is determined whether primitives completely cover the region. Only the primitive data of the completely covered region is stored, which solves the problems of large memory write bandwidth and large memory space occupation in the existing technology and improves the rendering efficiency of the graphics processing system.
Patent Information
- Application Number
- CN202110153614.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-02-07
- Filing Date
- 2021-02-04
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2041-02-04
AI Technical Summary
Existing tile-based graphics processing systems suffer from high memory write bandwidth and memory usage during rendering, especially when processing large numbers of large primitives, leading to a decline in system performance.
By subdividing the rendering space into multiple regions and using a layered tiling method, it is determined whether primitives completely cover the region, and only the primitive data of the completely covered region is stored, reducing the amount of data stored and transmitted for the control list.
It effectively reduces memory write bandwidth and memory footprint, improving the rendering efficiency of graphics processing systems, especially when processing a large number of large primitives.
Smart Images

Figure CN113256474B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to a graphics processing system and a method for rendering using the graphics processing system. Background Technology
[0002] Graphics processing systems are typically configured to receive, for example, graphics data from applications running on a computer system and render that graphics data to provide a rendered output. For example, the graphics data provided to a graphics processing system may describe the geometry within a three-dimensional (3D) scene to be rendered, and the rendered output may be a rendered image of the scene. Some graphics processing systems (which may be called “tile-based” graphics processing systems) use a rendering space subdivided into multiple tiles. A “tile” is an area of the rendering space and can have any suitable shape, but is typically rectangular (where the term “rectangle” includes squares). Subdividing the rendering space into tiles has many benefits, as is known in the art. For example, subdividing the rendering space into tiles allows for rendering images on a tile-by-tile basis, where the graphics data of a “tile” can be temporarily stored “on-chip” during the rendering of a tile, thereby reducing the amount of data transferred between system memory and the chip that implements the graphics processing unit (GPU) of the graphics processing system.
[0003] Tile-based graphics processing systems typically have two operational phases: a geometry processing phase and a rendering phase. In the geometry processing phase, the graphics data used for rendering is analyzed to determine which graphics data items are present within each tile. Then, in the rendering phase (e.g., the rasterization phase), the tile can be rendered by processing those graphics data items determined to be present in a particular tile (without processing graphics data items determined not to be present in the particular tile during the geometry processing phase).
[0004] Figure 1 An example of a tile-based graphics processing system 100 is shown. System 100 includes memory 102, geometry processing logic 104, and rendering logic 106. As known in the art, geometry processing logic 104 and rendering logic 106 can be implemented on a GPU and can share some processing resources. Geometry processing logic 104 includes a geometry acquisition unit 108, geometry transformation logic 110, culling / clipping unit 112, primitive tile assembly logic 113, and tiling unit 114. Rendering logic 106 includes a parameter acquisition unit 116, hidden surface removal (HSR) unit 118, and texturing / shading unit 120. Memory 102 can be implemented as one or more physical memory blocks and includes graphics memory 122, transformed parameter memory 124, control list memory 126, and frame buffer 128.
[0005] Figure 2This illustrates a tile-based rendering system, such as... Figure 1 The flowchart illustrates the method of the system. Geometry processing logic 104 executes the geometry processing stage, where geometry acquisition unit 108 acquires geometry data from graphics memory 122 (in step S202) and passes the acquired data to transformation logic 110. Geometry data includes graphics data items (i.e., geometry items) describing the geometry to be rendered. For example, a geometry item may represent a geometry describing a structural surface in a scene. Geometry items are typically “primitives.” A common primitive shape is a triangle, but primitives can be other 2D shapes, lines, or points. Primitives can be defined by their vertices, and vertex data describing the vertices can be provided, where combinations of vertices describe the primitive (e.g., a triangle primitive is defined by vertex data of three vertices). An object can consist of one or more such primitives. In some examples, an object can consist of thousands or even millions of such primitives. Scenes typically contain many objects. Geometry items can also be meshes (composed of multiple primitives, such as a quadrilateral including two triangular primitives sharing a common edge). Geometric items can also be patches, where patches are described by control points, and patches are subdivided to generate multiple subdivided primitives.
[0006] In step S204, geometry processing logic 104 preprocesses the geometry items, for example, by transforming them to screen space, performing vertex shading, performing geometry shading, and / or performing subdivision, applicable to the respective geometry items. For example, transformation logic 110 can transform the geometry items to rendering space and can apply lighting / attribute processing known in the art. The resulting data is passed to culling / clipping unit 112, which culls and / or clips any geometry falling outside the view frustum. The remaining transformed geometry items (e.g., primitives) are provided to primitive block assembly logic 113, which groups the geometry items into blocks (which may be referred to as "primitive blocks") for storage. For example, each block may include up to N primitives and up to M vertices, where the values of N and M are an implementation design choice. Each block can be associated with a block ID, making these blocks easy to identify and reference. Primitives typically share vertices with other primitives, so storing the vertices of primitives in blocks allows vertex data to be stored once within a block, where multiple primitives in a primitive block can reference the same vertex data within the block. In step S206, a primitive block with transformed geometry data items is provided to memory 102 to be stored in the transformed parameter memory 124. The transformed geometry items and information about how to pack them into primitive blocks are also provided to tiling unit 114. In step S208, tiling unit 114 generates control flow data for each tile in the rendering space, wherein the control flow data of a tile includes a control list of identifiers of the transformed primitives used to render the tile, i.e., a list of identifiers of the transformed primitives that are at least partially located within the tile. The control flow data of a tile may be referred to as the tile's "display list," "control list," or "object list." In step S210, the control flow data of a tile is provided to memory 102 to be stored in the control list memory 126. Therefore, after the geometry processing stage (i.e., after step S210), the transformed primitives to be rendered are stored in the transformed parameter memory 124, and the control flow data indicating which transformed primitives exist in each block is stored in the control list memory 126.
[0007] During the rendering phase, rendering logic 106 renders geometric items (primitives) on a tile-by-tile basis. In step S212, parameter acquisition unit 116 receives control flow data (i.e., a control list) for the tiles, and in step S214, parameter acquisition unit 116 retrieves the indicated transformed primitives from transformed parameter memory 124, as shown in the control flow data of the tiles. In step S216, rendering logic 106 determines primitive fragments representing primitives at discrete sampling points within the tiles by performing sampling on the primitives, and then renders the acquired primitives by performing hidden surface removal and texturing / shading on the primitive fragments. Specifically, the acquired transformed primitives are provided to hidden surface removal (HSR) unit 118, which performs sampling to determine primitive fragments and removes hidden (e.g., hidden by other primitive fragments) primitive fragments. Methods for performing sampling and hidden surface removal are known in the art. The term "fragment" refers to a sample of primitives at a sampling point that will be processed to render pixels of the image. The term "sampling" is used in this document to describe the process of determining fragments representing geometric items (e.g., primitives) at discrete sampling points, but this process may sometimes be referred to as "rasterization" or "scan conversion." In some examples, a one-to-one mapping from fragments to pixels may exist. However, in other examples, there may be more fragments than pixels, and this oversampling can allow for higher-quality rendering of pixel values, for example, by facilitating anti-aliasing and other filtering that can be applied to multiple fragments for rendering each pixel value. Primitives not eliminated by HSR unit 118 are provided to texturing / shading unit 120, which applies texturing and / or shading to the primitive fragments. Although in Figure 1 Not shown, but the texturing / shading unit 120 can receive texture data from the memory 102 to apply texture to primitive fragments, as is known in the art. As is known in the art, the texturing / shading unit 120 can apply further processing (e.g., alpha blending and other processing) to the primitive fragments to determine the rendered pixel values of the image. A rendering phase is performed for each tile in the image, so that the entire image can be rendered using the pixel values determined for the entire image. In step S218, the rendered pixel values are provided to the memory 102 to be stored in the frame buffer 128. The rendered image can then be used in any suitable manner, such as displaying it on a screen, storing it in memory, or transferring it to another device, etc.
[0008] Tile control lists allow rendering logic 106 to identify and retrieve the relevant primitives used to render a specific tile (i.e., only those primitives that at least partially cover the tile). However, large primitives covering most of the rendering space can appear in a large number of tiles. For example, a 1920×1080 pixel rendering has 2040 tiles when the tile size is 32×32 pixels. Therefore, in this example (which is common), large primitives can cover thousands of tiles, so the identifier of the large primitive can be written into thousands of control lists for the corresponding tile. Furthermore, in some examples, the tile size can be different; for example, the tile size can be 16×16 pixels. In this case, the number of tiles covered by primitives is four times that in the example given above where the tile size is 32×32 pixels.
[0009] Writing primitive identifier data into a large number (e.g., thousands) of control lists increases memory write bandwidth, i.e., the amount of data transferred from geometry processing logic 104 to memory 102. This data transfer from geometry processing logic 104 (typically implemented "on-chip") to memory 102 (typically implemented "off-chip" as system memory) can be a relatively slow process compared to other processes involved in rendering geometry data. Furthermore, increasing the amount of data in the control lists increases the minimum memory footprint of control list memory 126.
[0010] Some applications, such as user interface applications, tend to submit a small number of large primitives to the graphics processing system 100 for rendering, and copying primitive data to many control lists can have a particularly severe impact on these applications. Summary of the Invention
[0011] This summary is provided to introduce, in a simplified form, a series of concepts further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter.
[0012] A method for rendering primitives in a graphics processing system configured to use a rendering space subdivided into multiple regions is provided, the method comprising: The geometry processing stage includes: For each of the multiple primitives existing in a region, determine whether the primitive completely covers the region; and The system stores data on the geographic features present in the area, wherein for each geographic feature determined to completely cover the area, the stored data includes data indicating the total coverage of the area; and The rendering phase for primitives within the rendering area includes: Retrieve stored data of graphic elements existing in the region; Based on the retrieved data, the primitives present in the region are selectively processed to determine which sampling points are within the primitive coverage area, wherein if the retrieved data includes data indicating the total coverage area of a particular primitive, the process of determining which sampling points within the region are covered by the particular primitive is skipped. The rendering value at the sampling point within the region is determined based on the primitives covering the corresponding sampling point.
[0013] The geometry processing stage may further include: receiving a set of primitives; and determining which primitives in the set of primitives exist in a region, thereby determining the plurality of primitives present in the region; wherein the data storing the primitives present in the region may include storing primitive indication data of the region to indicate the determined plurality of primitives present in the region; and the rendering stage may further include: retrieving primitive data of the primitives present in the region based on the primitive indication data of the region, wherein determining the rendering value may include using the retrieved primitive data. The primitive indication data of the region may be stored in a control list of the region, and wherein data indicating whether a primitive completely covers the region may be stored in the control list of the region.
[0014] Determining whether a graphic element completely covers an area may include determining whether the graphic element covers each sampling point in the area.
[0015] The determination of whether a graphic element completely covers an area may include the entire area of the area to be determined.
[0016] The determination of whether a graphic element completely covers an area may include: Align the axes of the primitives with the bounding box, where the primitives are triangles; Determine the size of the bounding box in the horizontal and vertical directions; Compare bounding boxes in the horizontal direction (BB) x The size and area of the region in the horizontal direction (R) x The size of the bounding box in the vertical direction (BB) is compared. y The size and area of the region in the vertical direction (R) y The size of the region is given by the given area, where the region is rectangular. If any of the following conditions are met, the area is determined to be an area where the primitive is not completely covered: (i)BB x < R x , (ii)BB y < R y ,or (iii)(BB x< 2R x ) and (BB) y < 2R y ).
[0017] The determination of whether a graphic element completely covers an area may include: For each edge of the primitive: Determine which corners of the area are most likely outside the edge; and Determine whether the identified corner is inside the edge.
[0018] A region can be a tile in the rendering space.
[0019] A region can be a set of tiles in the rendering space.
[0020] The data used to indicate the total coverage of a region may include markers indicating the total coverage of that region.
[0021] Render values can represent: a scene image viewed from the viewpoint; or a texture to be applied to surfaces in the scene.
[0022] After the geometry processing phase of the current rendering is completed, the rendering phase of the current rendering can be executed.
[0023] The geometry processing stage can be performed without rasterizing the primitives.
[0024] A graphics processing system is provided, configured to render primitives using a rendering space subdivided into multiple regions, wherein the graphics processing system includes: Geometry processing logic, which is configured as follows: For each of the multiple primitives existing in a region, determine whether the primitive completely covers the region; and The data stored includes information about the geographic features present in the area, wherein for each geographic feature determined to completely cover the area, the stored data includes information indicating the total coverage of the area; and The rendering logic is configured as follows: Retrieve stored data of graphic elements existing in the region; Based on the retrieved data, the primitives present in the region are selectively processed to determine which sampling points are within the primitive coverage area, such that if the retrieved data includes data indicating the total coverage area of a particular primitive, the process of determining which sampling points within the region are covered by the particular primitive is skipped. The rendering value at the sampling point within the region is determined based on the primitives covering the corresponding sampling point.
[0025] The geometry processing logic can be further configured to: receive a set of primitives; and determine which primitives in the set of primitives exist in a region, thereby determining the plurality of primitives existing in the region; wherein the geometry processing logic is configured to store data for the primitives existing in the region that may include primitive indication data of the region to indicate the determined plurality of primitives existing in the region; wherein the rendering logic can be further configured to: retrieve primitive data of the primitives existing in the region based on the primitive indication data of the region; and use the retrieved primitive data to determine the rendering value.
[0026] The geometry processing logic can be configured to store in the control list of the region: (i) primitive indication data of the region, and (ii) primitive data for indicating whether primitives completely cover the region.
[0027] The geometry processing logic can be configured to determine whether a primitive fully covers an area by determining whether the primitive covers each sampling point in the area.
[0028] The geometry processing logic can be configured to determine whether a primitive completely covers an area by determining whether the primitive covers the entire area of the region.
[0029] The geometry processing logic can be configured to determine whether a primitive completely covers an area in the following ways: Align the axes of the primitives with the bounding box, where the primitives are triangles; Determine the size of the bounding box in the horizontal and vertical directions; Compare bounding boxes in the horizontal direction (BB) x The size and area of the region in the horizontal direction (R) x The size of the bounding box in the vertical direction (BB) is compared. y The size and area of the region in the vertical direction (R) y The size of the region is given by the given area, where the region is rectangular. If any of the following conditions are met, the area can be identified as an area with incomplete coverage of graphic elements: (i)BB x < R x , (ii)BB y < R y ,or (iii)(BB x < 2R x ) and (BB) y < 2R y ).
[0030] The geometry processing logic can be configured to determine whether a primitive completely covers an area in the following ways: For each edge of the primitive: Determine which corners of the area are most likely outside the edge; and Determine whether the identified corner is inside the edge.
[0031] A method for manufacturing a graphics processing system as described herein using an integrated circuit manufacturing system may be provided, the method comprising: A layout processing system is used to process the computer-readable description of the graphics processing system in order to generate a circuit layout description of the integrated circuits representing the graphics processing system; and Using an integrated circuit manufacturing system, a graphics processing system is manufactured based on a circuit layout description.
[0032] A method for rendering geometric items in a graphics processing system can be provided, wherein the graphics processing system is configured to use a rendering space subdivided into a plurality of first regions, each of the first regions being further subdivided into a plurality of second regions within the rendering space, wherein the method includes: Processing multiple geometric shape items, said multiple geometric shape items including at least one geometric shape item existing in two or more first regions, wherein each of the multiple geometric shape items is processed in the following manner: Identify which of the first regions the geometric item exists in; and For each identified first region: An indication of the spatial coverage of the geometric item within the identified first area; and Using the determined indication of the spatial coverage within the identified first area, it is determined whether to add the geometry item to a first control list of the identified first area or to one or more second control lists of corresponding second areas within the identified first area; and Use the following two to render the geometric items within the second region: (i) the first control list of the first region, of which the second region is a part, and (ii) the second control list of the second region.
[0033] A graphics processing system may be provided, configured to render geometric items using a rendering space subdivided into a plurality of first regions, each of the first regions being further subdivided into a plurality of second regions within the rendering space, wherein the graphics processing system includes: A geometry processing logic, configured to process a plurality of geometry items comprising at least one geometry item existing in two or more first regions, wherein the geometry processing logic is configured to process each of the plurality of geometry items in such a manner as follows: Identify which of the first regions the geometric item exists in; and For each identified first region: An indication of the spatial coverage of the geometric item within the identified first area; and Using the determined indication of the spatial coverage within the identified first area, it is determined whether to add the geometry item to a first control list of the identified first area or to one or more second control lists of corresponding second areas within the identified first area; and The rendering logic is configured to render geometric items within a second region using both of the following: (i) the first control list of the first region, of which the second region is a part, and (ii) the second control list of the second region.
[0034] The graphics processing system can be embodied in hardware on an integrated circuit. A method for manufacturing a graphics processing system at an integrated circuit manufacturing system can be provided. An integrated circuit definition dataset can be provided, which, when processed in the integrated circuit manufacturing system, configures the system to manufacture the graphics processing system. A non-transitory computer-readable storage medium can be provided, storing a computer-readable description of the graphics processing system, which, when processed in the integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit embodying the graphics processing system.
[0035] An integrated circuit manufacturing system may be provided, comprising: a non-transitory computer-readable storage medium storing a computer-readable description of a graphics processing system thereon; a layout processing system configured to process the computer-readable description to generate a circuit layout description of an integrated circuit embodying the graphics processing system; and an integrated circuit generation system configured to manufacture the graphics processing system according to the circuit layout description.
[0036] Computer program code for performing any of the methods described herein may be provided. A non-transitory computer-readable storage medium may be provided having computer-readable instructions stored thereon, which, when executed at a computer system, cause the computer system to perform any of the methods described herein.
[0037] As will be apparent to those skilled in the art, the above features can be appropriately combined, and can be combined with any aspect of the examples described herein. Attached Figure Description
[0038] The example will now be described in detail with reference to the accompanying drawings, in which: Figure 1 This shows the graphics processing system; Figure 2 A flowchart illustrating the method for rendering geometric items in a graphics processing system; Figure 3 Shows geometric items within the render space, which are subdivided into multiple levels; Figure 4 This is a flowchart illustrating the method for adding geometric items to a control list according to the example described in this article; Figure 5a A flowchart of a method for retrieving and rendering geometric items in a tile when multiple control lists exist; Figure 5b Examples of macro block control lists and block control lists are shown; Figure 6 This shows an example of a region within the rendering space and two primitives existing within that region. Figure 7 It is a flowchart of a method for rendering primitives, some of which can completely cover some areas within the render space. Figure 8 This illustrates a computer system in which a graphics processing system is implemented; and Figure 9 This illustrates an integrated circuit manufacturing system for generating integrated circuits that embody a graphics processing system.
[0039] The accompanying drawings illustrate various examples. Those skilled in the art will understand that the element boundaries (e.g., boxes, groups of boxes, or other shapes) shown in the drawings represent one example of a boundary. In some examples, it may be that one element can be designed as multiple elements, or multiple elements can be designed as one element. Where appropriate, common reference numerals are used throughout the drawings to indicate similar features. Detailed Implementation
[0040] The following description is given by way of example to enable those skilled in the art to make and use the invention. The invention is not limited to the embodiments described herein, and various modifications to the disclosed embodiments will be readily apparent to those skilled in the art.
[0041] The implementation scheme will now be described using examples only.
[0042] The graphics processing system described herein uses multiple "levels" of tiling, allowing selection of tiling resolution to add geometric items to control lists based on their size. For example, in a system using two "levels" of tiling, the rendering space can be subdivided into multiple first regions (which may be "macro tiles," as described in more detail below), each of the first regions being subdivided into multiple second regions. The second regions may correspond to tiles or groups of tiles within the rendering space. A first control list can be formed for each first region, and a second control list can be formed for each second region. Geometric items present in a second region can be added to the second control list of that second region, or to the first control list of a first region in which the second region is part. The decision regarding which control lists to add geometric items can be based on the size of the geometric items, particularly on the spatial coverage of the geometric items within the first regions. This decision can be made independently for each of the first regions in which the geometric items reside. Generally, if a geometric item exists in a region of the rendering space at the time of processing, at least a portion of the processed geometry exists within that region. (Before tiling, during the geometry processing stage) Some processing performed on geometry items can change the shape and / or position of the geometry items (e.g., performing vertex shading, geometry shading, or tiling).
[0043] For example, a larger geometry item covering a larger proportion (or "first region") of a macroblock can be added to the macroblock's control list, while a larger geometry item not covering a larger proportion of the macroblock can be added to one or more control lists of one or more blocks (or "one or more second regions") within the macroblock where the geometry item exists. As explained in detail in the following examples, a variety of different ways can be used to determine what is considered a "larger" proportion of the macroblock. For example, a threshold area can be set (where the threshold can be, for example, 25%, 33%, 50%, 66%, 75%, or even 100%, to name just a few examples), and the spatial coverage of the geometry item within the first region can be compared to the threshold to determine whether to add the geometry item to the first control list of the first region.
[0044] It should be understood that when referring to adding geometry items to the control list, this is intended to cover adding the identifier of the geometry item to the control list, without having to add all data associated with the geometry item to the control list.
[0045] Adding larger geometry items to the control list of the first region (e.g., to the control list of macroblocks) means that it is not necessary to add geometry items to a separate control list for blocks within the first region. Therefore, there is less repetition of larger geometry items in the control list stored in memory. This reduces the amount of data transferred from (e.g., on-chip) geometry processing logic to (e.g., off-chip) memory. In other words, memory write bandwidth is reduced compared to the prior art systems described in the background section above. Furthermore, the memory footprint of the control list memory can be significantly reduced compared to the prior art systems described in the background section above.
[0046] The rendering phase of the current render is executed after the geometry processing phase of the current render is completed. In other words, the rendering phase of the current render does not begin until all steps of the geometry processing phase of the current render are completed. A rendering phase may include sampling primitives to determine primitive fragments representing discrete sampled points within a tile; this can also be referred to as "rasterization." However, the geometry processing phase operates on primitives representing regions defined by vertices, rather than determining primitive fragments at discrete sampled points. Specifically, the geometry processing phase does not include rasterization; that is, it is performed without rasterizing the primitives. Rasterization is not performed on the current render until all steps of the geometry processing phase for the current render are completed. Therefore, the geometry processing phase occurs before rasterization.
[0047] Figure 1 The graphics processing system shown can be used to implement the examples described in this article, and Figure 2 The flowchart shown describes, from a higher level, how geometry items are rendered in the examples described herein. However, in the examples described herein, one or more additional levels of tiling are introduced, where the identifier of a geometry item can be added to a control list corresponding to a different level of tiling based on the spatial coverage of the geometry item. In this sense, the examples described herein implement "layered tiling".
[0048] In the first example described in detail in this article, only two levels of tiling are used, allowing the system to use: (i) the control list of macro tiles and (ii) the control list of plot tiles. In other examples, more than two levels of tiling may be used, as described in more detail below.
[0049] Figure 3 An example of a rendering space 300 is shown, which is subdivided into four macromap tiles arranged in a 2×2 block pattern (as shown in bold, and...). Figure 3 (These are referred to as 3020, 3021, 3022, and 3023). In other examples, the rendering space can be divided into different numbers of macromap tiles, such as sixteen macromap tiles arranged in a 4×4 block configuration.
[0050] exist Figure 3 In the example shown, each macromap tile is subdivided into a block of sixteen tiles arranged in a 4×4 grid. Figure 3 In this example, four of the tiles are designated as blocks 3040, 3041, 3042, and 3043. Each tile's block represents sixteen tiles arranged in a 4x4 grid. For clarity, in... Figure 3 The individual tiles are not shown, but note that in this simplified example, each macro tile comprises 256 tiles, resulting in a total rendering space of 1024 tiles. Figure 3 A geometric project is shown, comprising two triangular primitives 306 and 308, and a quadrilateral 310 in rendering space 300. Primitive 306 is defined by vertices V0, V1, and V2; primitive 308 is defined by vertices V3, V4, and V5; and quadrilateral 310 is defined by vertices V6, V7, V8, and V9. Quadrilateral 310 consists of two triangular primitives: primitive 3100 defined by vertices V6, V7, and V9; and primitive 3101 defined by vertices V7, V8, and V9. The two primitives 3100 and 3101 share the edge between vertices V7 and V9, such that they form quadrilateral 310, wherein the edge between vertices V7 and V9 is inside quadrilateral 310.
[0051] In this example, such as Figure 2 The rendering of geometric items (e.g., primitives, meshes (such as quadrilaterals, patches, etc.)) is performed as outlined in the flowchart. Steps S202, S204, and S206 are performed as described above, such that the geometric items are retrieved from the graphics memory 122 by the geometry acquisition unit 108, transformed into the rendering space by the transformation logic 110, appropriately culled and / or clipped by the culling / clipping unit 112, packaged into primitive blocks by the primitive block assembly logic 113, and stored in the transformed parameter memory 124 in the memory 102.
[0052] The steps of performing tiling and forming a control list differ from the corresponding step S208 in the example described above in the background section. In the example described herein, the tiling process performed by tiling unit 114 includes implementing, as Figure 4The method shown in the flowchart (instead of performing step S208) is used to add geometry items to one or more first control lists and / or to one or more second control lists. This is performed for each geometry item to be tiled by the tiling unit 114. Figure 4 The method is illustrated. As mentioned above, geometric items can be, for example, primitives, or in other examples, grids (e.g., quadrilaterals) or patches. In this example, the "first region" is macro tiles 3020 to 3023, and the "second region" is a separate tile ( Figure 3 (Not shown in the image).
[0053] In step S402, geometric items are processed to identify which first regions (e.g., which macroblocks 302) contain the geometric item. This can be performed in any suitable manner. Many techniques known in the art exist for identifying which macroblocks 302 contain the geometric item. For example, the bounding box (e.g., axis-aligned bounding box) of the geometric item can be determined, wherein the geometric item does not exist within any macroblock that does not at least partially overlap with the bounding box of the geometric item. If the bounding box of the geometric item does not cross the macroblock boundary in either the X or Y direction, it is known that the geometric item exists in all macroblocks that overlap with the bounding box of the geometric item. For example, it is known that a geometric item exists in all macro tiles that overlap with its bounding box if the following conditions are met: (i) the bounding box of the geometric item is entirely within a single macro tile, so that it does not cross any macro tile boundary; (ii) the bounding box of the geometric item crosses one or more macro tile boundaries in the X direction, but does not cross any macro tile boundaries in the Y direction; or (iii) the bounding box of the geometric item crosses one or more macro tile boundaries in the Y direction, but does not cross any macro tile boundaries in the X direction. However, if the bounding box of the geometric item crosses macro tile boundaries in both the X and Y directions, the geometric item may not exist in all macro tiles that overlap with its bounding box. A conservative approach is to determine in each macro tile that overlaps with its bounding box the geometric item is in. Alternatively, a “perfect tiling” approach can be used to determine which macro tiles in macro tile 302 that overlap with its bounding box the geometric item is in. For example, for each macro tile that overlaps with its bounding box the geometric item, a test can be performed to determine whether the geometric item exists in the macro tile. For each edge of a geometric item, the test may involve comparing the corner position of the macroblock with the straight line equation of the edge to determine whether the corner position of the macroblock is inside or outside the edge.
[0054] Following step S402, one or more macroblocks 302 containing geometric items have been identified. Processing can then be performed on each identified macroblock (e.g., independently) to determine whether a geometric item covers a larger proportion of each macroblock within the macroblock. If a geometric item covers a larger proportion of the macroblock (such that the geometric item can be considered a "larger" geometric item relative to the macroblock), it is added to the macroblock control list. However, if a geometric item does not cover a larger proportion of the macroblock (such that the geometric item cannot be considered a "larger" geometric item relative to the macroblock), it is not added to the macroblock control list but can instead be added to one or more block control lists of the blocks within the macroblock. Whether a geometric item is "larger" relative to a macroblock can be determined in different ways in different examples. For example, steps S406 through S418 can be performed to determine whether a geometric item is "larger" relative to a macroblock. The same geometric item may be considered a larger geometric item relative to one macroblock but a smaller geometric item relative to another macroblock. In other words, for example, a decision can be made on whether a geometric item is large relative to each macro tile based on the spatial coverage of the geometric item with the specific macro tile in question.
[0055] In step S404, one of the identified macroblocks 302 is selected. The order in which the identified macroblocks 302 are selected is not important, because at the end of the method, all identified macroblocks will be selected in the corresponding iteration of the method.
[0056] From the following Figure 4 As will be apparent from the description of the remainder of the method, for each identified first region (e.g., for each macroblock 302 in which a geometric item exists), an indication is determined regarding the spatial coverage of the geometric item within the identified first region. This indication is then used to determine whether to add the geometric item to a first control list of the identified first region (e.g., a macroblock), or to add the geometric item to one or more second control lists of corresponding second regions (e.g., one or more blocks) within the identified first region. Method steps S406 to S426 are merely one example of how this can be implemented.
[0057] In step S406, the overlap area between the selected macromap tile 302 and the bounding box of the geometric item is determined. The overlap area is an indication of the spatial extent of the geometric item within the selected macromap tile 302. However, the overlap area determined in step S406 is a rather coarse approximation of the true overlap between the geometric item and the selected macromap tile 302. In particular, the overlap area determined in step S406 tends to overestimate the true overlap between the geometric item and the selected macromap tile because the bounding box of the geometric item is often larger than the geometric item itself. The bounding box used in step S406 can be rectangular. For example, the bounding box used in step S406 can be an axis-aligned bounding box (AABB). Note that determining the size of the axis-aligned bounding box of the geometric item is a very simple process. For example, this can be done by finding the maximum and minimum values of the coordinates of the vertices of the geometric item in the x and y directions. These maximum and minimum values in the x and y directions will represent the size of the bounding box in the x and y directions.
[0058] In step S408, the overlapping area determined in step S406 is compared with a threshold. This threshold can be, for example, a proportion of the area of macroblock 302. For instance, the threshold could be a percentage of the area of the selected macroblock 302. In other examples, the threshold can be a different scale of the macro-tile area, or it can be based on a value other than a scale of the macro-tile area. The granularity at which the boundaries and sizes of the bounding box and macro-tile are determined can vary in different examples. In some examples, the boundaries of the bounding box and macro-tile are determined at the tile granularity, such that their sizes are determined as integer tiles.
[0059] If, in step S408, the overlapping area is determined to be no greater than (e.g., less than) a threshold, then the geometric item is considered not to cover a large proportion of the selected macroblock 302. In other words, if, in step S408, the overlapping area is determined to be no greater than the threshold, then the geometric item is considered not a "large" geometric item relative to the selected macroblock. Therefore, instead of adding the geometric item to the control list of the selected macroblock 302, it can be added to the control list of one or more blocks within the macroblock. Therefore, if, in step S408, the overlapping area is determined to be no greater than the threshold, the method proceeds from step S408 to step S424, as described below.
[0060] However, if it is determined in step S408 that the overlapping area is greater than a threshold, the geometric item may cover a "larger" proportion of the selected macroblock 302. In this case, the method proceeds from step S408 to step S410 to determine a sub-polygon representing a portion of the geometric item within the selected macroblock 302. A "sub-polygon" is a portion of the geometric item that falls within the selected macroblock 302. Therefore, if a geometric item exists in two or more macroblocks, the sub-polygon is smaller than the geometric item to which it is a part, relative to one of the macroblocks in which the geometric item exists. In different examples, the sub-polygon can be determined in different ways. For example, the intersection point between the edge of the geometric item and the boundary of the selected macroblock 302 can be determined and used as a vertex of the sub-polygon. Furthermore, any vertex of the geometric item within the selected macroblock 302 can be used as a vertex of the sub-polygon. Additionally, a corner of the selected macroblock 302 within the geometric item can be used as a vertex of the sub-polygon.
[0061] In step S412, the bounding box of the sub-polygon is determined. For example, the bounding box can be a rectangle, such as an axis-aligned bounding box. As mentioned above, determining the axis-aligned bounding box is a simple process; for the sub-polygon, this process involves finding the maximum and minimum x and y values from the coordinates of the sub-polygon's vertices. It should be noted that the sub-polygon exists only within a single macro tile. Furthermore, if the bounding box is an axis-aligned bounding box, the bounding box of the sub-polygon also exists only within a single macro tile.
[0062] In step S414, the size of the bounding box of the sub-polygon is compared with a threshold size. In some examples, the bounding box of the sub-polygon is determined at the tile granularity, i.e., the boundary of the bounding box can be aligned with the tile boundaries in the selected macro-tile. The threshold size can be represented as the number of tiles. For example, the threshold size used in step S414 could be 0.4N, where N is the number of tiles in the selected macro-tile. In some examples, different numbers of tiles can be used as the threshold. In other examples, the threshold size can be represented as a value different from the number of tiles, such as an area.
[0063] If it is determined in step S414 that the size of the bounding box of the sub-polygon is less than a threshold size, then the geometry item is considered not to cover a large proportion of the selected macro block 302. Therefore, instead of adding the geometry item to the macro block control list of the selected macro block 302, the geometry item can be added to one or more block control lists of one or more blocks within the macro block, and the method proceeds to step S424 as described below.
[0064] However, if it is determined in step S414 that the size of the bounding box of the sub-polygon is greater than a threshold size, the geometry item can cover a "larger" proportion of the selected macroblock 302. In this case, the method proceeds from step S414 to step S416, which determines the area of the sub-polygon. Those skilled in the art will know how to determine the area of the sub-polygon. For example, if the sub-polygon is a triangle with vertex coordinates (x0, y0), (x1, y1), and (x2, y2), the area (A) of the triangle can be determined by calculating half the absolute value of the determinant. The value of the determinant (TriDet) of the triangle can be defined as: .
[0065] Therefore, the area (A) of the triangle can be calculated as follows: If the subpolygon comprises multiple triangles, the area of each individual triangle can be determined, and then the areas of the subpolygon can be summed to obtain the area of the subpolygon.
[0066] In step S418, the area of the sub-polygon is compared with a threshold area. In different examples, the threshold area can take different values. For example, the threshold area can be a proportion of the area of the selected macro-plot 302. For example, the threshold area can be a percentage of the area of the selected macro-plot. .
[0067] Therefore, step S418 may involve determining whether it is ,in The area of the macro-polygon is given. In some examples, steps S416 and S418 can be combined into a single step, such that the area A of the sub-polygon is not explicitly determined (i.e., never explicitly determined). The value), but this method can be directly used to determine whether it is The method proceeds to step S420 to determine whether the area of the sub-polygon is greater than a threshold area. If the area of the sub-polygon is determined to be greater than the threshold area, the geometric item is considered to be a larger geometric item relative to the selected macro block 302, and the method proceeds to step S424. However, if the area of the sub-polygon is determined not to be greater than (e.g., determined to be less than) the threshold area, the geometric item is considered not to be a larger geometric item relative to the selected macro block 302, and the method proceeds to step S424.
[0068] In some examples, instead of determining The absolute value can be used The signed value, and according to The sign can be used to determine whether the area of a sub-polygon is greater than a threshold area, using one of two conditions. Specifically, these conditions are: To classify a sub-polygon into any of the following categories, the calculation of its area does not need to be highly accurate: (i) covering the larger area of the selected macro-tile 302, or (ii) not covering the larger area of the selected macro-tile 302. The precision of the determinant (TriDet) calculation may vary in different examples. For instance, the coordinates used to determine the determinant can be specified with sample precision or at a lower precision (e.g., at tile granularity), such that the coordinates are defined in integer tile units within the selected macro-tile 302. In other words, the area of the sub-polygon can be determined using the coordinates of the vertices of the sub-polygon rounded to the quantization position, and in some examples, the quantization position can be aligned with the boundaries between tiles or the boundaries between blocks of tiles.
[0069] In some examples, the spatial coverage of a geometry item within a selected macroblock can be defined as multiple second regions (e.g., tiles or tile groups) within the selected macroblock in which the geometry item exists. In some examples, for a geometry item to be considered a larger geometry item relative to the selected macroblock, the geometry item may need to exist within a threshold number (e.g., all) of the second regions (e.g., tiles or tile groups) within the selected macroblock. In these examples, if a geometry item exists within a threshold number (e.g., all) of the second regions within the selected macroblock, the geometry item is included in the macroblock control list of the selected macroblock; however, if a geometry item exists within a threshold number (e.g., less than all) of the second regions within the selected macroblock, the geometry item is included in one or more second control lists of the corresponding one or more second regions (e.g., tiles or tile groups) within the selected macroblock in which the geometry item exists.
[0070] All three steps in S408, S414 and S418 involve comparing an indication of the spatial coverage of a geometric item within the selected macro block with a threshold, and using the comparison result to determine whether to add the geometric item to a first control list (e.g., the control list of the selected macro block 302) or to one or more control lists in the control list of a second region (e.g., the block control list of a block within the selected macro block 302).
[0071] If the method proceeds to step S420, this means that the geometric item is considered a larger geometric item relative to the selected macro tile 302. In step S420, tiling is performed to determine which sub-regions within the selected macro tile 302 contain the geometric item. Methods for performing tiling to determine which regions in rendering space contain the geometric item are known in the art. Tiling can be performed on the geometric item or on sub-polygons representing portions of the geometric item that overlap with the selected macro tile 302. The “sub-region” tiling performed in step S420 can be a tile or a group of tiles (e.g., a 2×2 group of tiles). Because step S420 is performed only for geometric items considered larger within the selected macro tile, in step S420, the geometric item is typically present in a large proportion (e.g., more than half) of the tiles within the selected macro tile 302, which is one reason why, in some examples, the sub-region tiling performed in step S420 can be a group of tiles.
[0072] In some examples, step S420 is not performed. While this may improve the efficiency of the system in performing the tiling step S420, omitting the tiling step does not cause any rendering errors.
[0073] In some examples, the tiling performed in step S420 also includes determining a sub-region mask for the geometry item to indicate which sub-regions within the selected macroblock 302 contain the geometry item. However, in some other examples, if the geometry item exists in all sub-regions within the macroblock, the geometry item will only be included in the macroblock control list of the selected macroblock 302; and in these examples, tiling is not required (i.e., it is not required to perform either: (i) determining which sub-regions within the selected macroblock 302 contain the geometry item, or (ii) determining the sub-region mask), because if the geometry item is included in the macroblock control list, it is known that the geometry item exists in all sub-regions within the macroblock.
[0074] In step S422, a geometry item is added to a first control list, i.e., to the control list of the selected macroblock 302. In the example described herein, adding a geometry item to the control list includes adding an indication of the geometry item to the control list. As described above, in step S206, a primitive block including data for multiple geometry items is stored in the transformed parameter memory 124. The indication of the geometry item included in the control list may include an indication of the associated primitive block and an index identifying the geometry item from the multiple geometry items included in that primitive block. Furthermore, if a sub-region mask of the geometry item is determined in step S420, that mask will also be included in the control list of the selected macroblock 302. In the example described herein, an entry in the control list of the macroblock is associated with a geometry item and includes an indication of the geometry item (e.g., a primitive block ID and an index for locating the geometry item within the primitive block) and a sub-region mask to indicate which sub-regions within the macroblock contain the geometry item.
[0075] In the examples described above where step S420 is not performed, the geometry item may be included in the control list of the selected macro block 302, which either does not have a sub-region mask or has a sub-region mask indicating that the geometry item is considered to exist within all sub-regions of the macro block. In these examples, even if the geometry item does not exist in any of the blocks of the selected macro block 302, the geometry item will still be processed for all blocks of the selected macro block 302 during the rendering stage. This can lead to reduced efficiency because geometry items may be unnecessarily processed for some blocks during the rendering stage, but this will not cause rendering errors because if the geometry item does not exist in the block, the sampling performed during the rendering stage will determine that the geometry item does not exist at any sampling point of the block, and therefore no fragment will be generated from the geometry item in the block. After step S422, the method proceeds to step S428 as described below.
[0076] If the method (from any of steps S408, S414, or S418) proceeds to step S424, this means that the geometry item is considered not a large geometry item relative to the selected macro tile 302. In step S424, tiling is performed to determine which tiles in the selected macro tile 302 contain the geometry item. As described above, methods for performing tiling to determine which tiles in rendering space contain the geometry item are known in the art. Tiling can be performed on the geometry item or on sub-polygons representing portions of the geometry item that overlap with the selected macro tile 302. Since step S424 is performed only for geometry items considered not large within the selected macro tile, in step S424, the geometry item typically only exists in a small proportion (e.g., less than a quarter) of the tiles within the selected macro tile 302. This is why, in the example described herein, tiling is performed at the tile level (rather than at the tile group level) in step S424. However, in other examples, tiling, which is performed in step S424, can be performed at the level of a tile group (e.g., a 2×2 tile group).
[0077] In step S426, a geometry item is added to a second control list, which is one or more block control lists of blocks containing geometry items within the selected macro block. In the example described herein, adding a geometry item to the control list includes adding an indication of the geometry item to the control list.
[0078] In different examples, the data structure within the block control list may differ. For instance, entries in the block control list of a block may include indications of the primitive block stored in the transformed parameter memory 124, as well as data (e.g., a mask) indicating which geometric items from the primitive block are present within the block. Therefore, in these examples, entries in the block control list of a block may indicate that multiple geometric items from the primitive block are present in the block. Consequently, as more geometric items from the primitive block are processed, the entries in the block control list can be iteratively updated during the geometry processing phase.
[0079] It should be noted that in the examples described herein, the structure of entries in the tile control list differs from the structure of entries in the macro tile control list. Specifically, in the examples described herein, entries in the macro tile control list of a macro tile are associated with a single geometry item (indicated by a primitive index within a specific primitive tile) and include an indication (e.g., a mask) of which sub-regions (e.g., tile groups or tiles) within the macro tile where the geometry item exists; conversely, entries in the tile control list of a tile are associated with a primitive tile and include an indication (e.g., a mask) of which geometry items within the primitive tile exist within the tile.
[0080] After step S426, the method proceeds to step S428. In step S428, it is determined whether there is another macroblock identified in step S402 that has not yet been selected in step S404. If there are one or more identified macroblocks that have not yet been selected, the method returns to step S404, allowing another macroblock to be selected and processed relative to the geometry item.
[0081] If it is determined in step S428 that there is no other macroblock identified in step S402 but not yet selected in step S404, the method proceeds to step S430. In step S430, it is determined whether there are any other geometry items to be processed in the current rendering. If so, the method returns to step S402 and performs the method relative to another geometry item. If it is determined in step S430 that there are no more geometry items to be processed, the processing ends at step S432. At this point, all geometry items in the current rendering scene have been processed and the control list has been determined. Figure 2 As shown in step S210, the control list can then be stored, thereby completing the geometry processing stage.
[0082] Now, we will use some examples to illustrate how to... Figure 4 The method shown handles some geometric items, such as Figure 3 The primitives 306 and 308, and quadrilateral 310 are shown. For primitive 306, all four macroblocks 3020, 3021, 3022, and 3023 will be identified in step S402 because primitive 306 exists in all four macroblocks. In step S404, the first macroblock 3020 will be selected. In step S406, the bounding box of primitive 306 will be determined, and the overlap area between this bounding box and macroblock 3020 will be determined. From... Figure 3 As can be seen, the overlapping area will be very small, especially smaller than the threshold used in step S408, for example, smaller than the area of macroblock 3020. Therefore, the method proceeds to S424, where element 306 will be added to the second control list, i.e., the block control list of the blocks it covers within macro block 3020, but will not be added to the macro block control list of macro block 3020. For macro block 3021, from... Figure 3 It can be seen that the overlap area between the bounding box of primitive 306 and macroblock 3021 will be less than a threshold, for example, less than the area of macroblock 3021. Therefore, primitive 306 will be added to the block control list of the blocks it covers within macro block 3021, but will not be added to the macro block control list of macro block 3021. However, for macro block 3022, the bounding box of primitive 306 will overlap with almost all macro block 3022, so the method proceeds to step S410, in which the sub-polygon representing the portion of primitive 306 within macro block 3022 is determined. The vertices of the sub-polygon are: (i) V0, (ii) V1, (iii) the intersection point (Int1) between the edge of primitive 306 between vertices V1 and V2 and the boundary between macroblocks 3020 and 3022, (iv) the intersection point (Int2) between the edge of primitive 306 between vertices V0 and V2 and the boundary between macroblocks 3022 and 3023, and (v) the point (C) at the center of rendering space 300 at the corners of macroblocks 3020, 3021, 3022, and 3023. In step S412, the bounding box of the sub-polygon is determined, and in step S414, it is determined that the size of the bounding box is greater than a threshold. The method proceeds to step S416, in which the area of the sub-polygon is determined, for example, by decomposing the sub-polygon into multiple triangles and determining the area of each triangle based on the determinant calculated using the vertex positions of the triangles as described above. The area of the sub-polygon can be obtained by adding the areas of the different triangles together. In step S418, the area of the sub-polygon is compared with the threshold area (e.g., the area of the macro-plot). ) for comparison, and for primitive 306, from Figure 3 It can be seen that the area of the sub-polygons in macro block 3022 covers the area of macro block 3022. Therefore, in this example, the method proceeds to steps S420 and S422, such that element 306 will be added to the macro block control list of macro block 3022, but will not be added to the block control list of any blocks within macro block 3022. For macro block 3023, from... Figure 3 It can be seen that the overlap area between the bounding box of primitive 306 and macroblock 3023 will be less than a threshold, for example, less than the area of macroblock 3023. Therefore, element 306 will be added to the block control list of the blocks it covers within macro block 3023, but will not be added to the macro block control list of macro block 3023.
[0083] As another example, for primitive 308, only macroblock 3020 will be identified in step S402, and then selected in step S404. In step S406, the bounding box of primitive 306 is determined, and this bounding box only covers a single group of blocks 304 within macroblock 3020. Therefore, the overlap area between the bounding box of primitive 308 and macroblock 3020 will be small, particularly smaller than the threshold used in step S408, for example, smaller than the area of macroblock 3020. Therefore, element 308 will be added to the block control list of the blocks it covers within macro block 3020, but will not be added to the macro block control list of macro block 3020. Since element 308 does not exist in any macro blocks of macro blocks 3021, 3022, or 3023, it will not be added to the macro block control list of those macro blocks, nor will it be added to any block control list of any blocks within those macro blocks.
[0084] As another example, quadrilateral 310 is considered a geometric shape item formed by two triangular primitives 3100 and 3101. For quadrilateral 310, macroblocks 3021 and 3023 (instead of macroblocks 3020 or 3022) will be identified in step S402. Macroblock 3021 will be selected in step S404. In step S406, the bounding box of quadrilateral 310 will be determined, and the overlap area between the bounding box and macroblock 3021 will be determined. From Figure 3 As can be seen, the overlapping area will be very small, especially smaller than the threshold used in step S408, for example, smaller than the area of macroblock 3021. Therefore, quadrilateral 310 will be added to the tile control list of the tiles it covers within macro tile 3021, but will not be added to the macro tile control list of macro tile 3021. However, for macro tile 3023, the bounding box of quadrilateral 310 will overlap with most macro tiles in macro tile 3023, so the method proceeds to step S410, in which a sub-polygon representing the portion of quadrilateral 310 within macro tile 3023 is determined. In step S412, the bounding box of the sub-polygon is determined, and in step S414, it is determined that the size of the bounding box is greater than a threshold. The method proceeds to step S416, in which the area of the sub-polygon is determined, for example by decomposing the sub-polygon into multiple triangles, and determining the area of each triangle based on the determinant calculated using the vertex positions of the triangles as described above. The areas of the different triangles can be added together to obtain the area of the sub-polygon. In step S418, the area of the sub-polygon is compared with a threshold area (e.g., the area of the macro tile). Compare, and for quadrilateral 310, from Figure 3It can be seen that the area of the sub-polygons in macroblock 3023 covers the area of macroblock 3023. Therefore, in this example, the method proceeds to steps S420 and S422, such that quadrilateral 310 will be added to the macro block control list of macro block 3023, but will not be added to the block control list of any block within macro block 3023.
[0085] Rendering stage As described above, transformed geometry items are stored in primitive blocks (generally referred to herein as "data blocks") according to the submission order of the geometry items. That is, the application submits geometry items (e.g., primitives) to the graphics processing system 100 for rendering in a specific order (referred to as the "submission order"), and this order is maintained when the geometry items are stored in primitive blocks. Each primitive block is associated with a primitive block ID (generally referred to herein simply as a "block ID"). Each entry in the control list includes: (ii) a primitive block ID for identifying the primitive block; and (iii) a primitive indicator for indicating one or more primitive blocks from which the identified primitive block originates. The primitive indicator included in the macro block control list may, for example, include a primitive index indicating which primitive within the primitive block the entry is associated with. The primitive indicator included in the block control list may, for example, include a primitive mask indicating which one or more primitives in the primitive block the entry is associated with.
[0086] Used by the rendering phase executed by the rendering logic Figure 5a The method is shown in the flowchart above. This method follows the same principles as described above. Figure 2 The method is similar to that shown in steps S212 to S218. However, now for each tile to be rendered, there may be more than one control list indicating the geometric items present in that tile. For example, there may be a tile control list for the tile and a macro block control list for the macro block to which the tile is located. Therefore, both of the following can be used to render the geometric items within the tile: (i) the macro block control list of the macro block to which the tile is part, and (ii) the tile control list itself. In some examples, there may be more than two control lists associated with a particular tile, and in these examples, more than two control lists can be used to render the geometric items within the tile.
[0087] Therefore, the rendering phase includes, in step S502, obtaining control lists related to the rendered tiles (e.g., a tile control list of the tile and a macro tile control list of the macro tiles to which the tile is part).
[0088] Because there are more than one control list identifying the geometric items to be retrieved for rendering tiles, the process of retrieving geometric items is more complex. Specifically, these geometric items should be retrieved according to the order in which they were submitted to the graphics processing system. For example, a tile may be associated with macro tile control list 522 and tile control list 524, such as... Figure 5b As shown. These two control lists are processed in parallel. A pointer is maintained for each control list. For example, pointer 526 is maintained for macro block control list 522, and pointer 528 is maintained for block control list 524. The pointers indicate the current entry in the control list being processed. Initially, pointers 526 and 528 both point to the first entry in their respective control lists (e.g., ...). Figure 5b (As shown). Step S504 of the method includes selecting the lowest unselected primitive block ID (i.e., the primitive block ID of the entry indicated by the pointer) from two control lists. In step S506, one or more geometry items are retrieved from the primitive block with the selected primitive block ID, based on the primitive indication of the primitive block with the selected primitive block ID. When an entry has been selected from the control list, in step S508, the pointer to the control list is modified (i.e., updated) to point to the next entry in the control list.
[0089] In step S510, the acquired geometry items are processed to render them, for example by sampling the primitives to determine primitive fragments at sample locations within the tile, and then performing hidden surface removal and texturing and / or shading on these fragments to determine render values. As mentioned above, sampling can be referred to as "rasterization" or "scan conversion". In step S512, it is determined whether there are any more entries in either control list 522 or control list 524. This can be done by determining whether the pointer has reached the end of the corresponding control list. If there is at least one more entry in either control list, the method returns to step S504 so that the next entry can be processed. If it is determined in step S512 that there are no more entries in the control list, the method proceeds to step S514. In step S514, render values can then be sent for storage. Render values may represent a scene image viewed from the viewpoint. In some examples, render values may represent textures that can be stored in a texture memory, for example, so that the rendered texture can be applied to surfaces within the scene in subsequent renderings.
[0090] Assuming in Figure 5bIn the example shown, the currently rendering tile is in the first tile of the macro block. The first entry in tile control list 524 will be selected first (in step S504) because it has the lowest primitive block ID. The primitive mask indicates that the second, fourth, and sixth primitives from primitive block 1 will be retrieved. Next, the first entry in macro block control list 522 will be selected, and the seventh primitive from primitive block 2 will be retrieved because the tile mask of the tile in this entry has a "1" in the first position, which means that the entry in macro block control list 522 is related to rendering the current tile. The second entry in macro block control list 522 has a "0" in the first position of the tile's tile mask, so this entry is not related to the current tile, and pointer 526 moves to the third entry in macro block control list 522. Next, the third entry in macro block control list 522 will be selected because this third entry has a lower primitive block ID than the second entry in tile control list 524, and the first primitive will be retrieved from primitive block 3. Next, the second entry in block control list 524 will be selected because it has a lower primitive block ID than the fourth entry in macro block control list 522, and the first primitive, fourth primitive, and eighth primitive from primitive block 4 will be obtained.
[0091] Next, pointer 526 will point to the fourth entry in macro block control list 522, and pointer 528 will point to the third entry in block control list 524. These entries all have the same primitive block ID. In this case, the primitive index in the macro block control list entry is merged with the primitive mask from the block control list entry to determine which primitives will be retrieved from the primitive block. In other words, if the lowest primitive block ID that was not previously selected is in both macro block control list 522 and block control list 524 (i.e., if pointers 526 and 528 point to entries with matching primitive block IDs), a merged primitive mask is formed that identifies primitives from the primitive block with said lowest primitive block ID based on the primitive index in the entry of macro block control list 522 and the primitive mask in the entry of block control list 524. In this example, the merged primitive mask for primitive block 5 will be 01000010. Therefore, the second and seventh primitives from primitive block 5 will be retrieved. Note that in this example, the primitive indexes start from 1, such that, for example, the primitive index of the "first" primitive from the primitive block is 1, and the primitive index of the "second" primitive from the primitive block is 2, and so on. In other examples, the primitive indexes may start from zero, such that, for example, the primitive index of the "first" primitive from the primitive block is 0, and the primitive index of the "second" primitive from the primitive block is 1, and so on.
[0092] Then finally Figure 5bIn the example shown, the fourth entry in the block control list 524 will be selected, and the first, fifth, seventh, and eighth primitives from primitive block 6 will be retrieved.
[0093] Layered tiling with two or more levels The above references Figure 4 , Figure 5a and Figure 5b In the example described, there are only two levels of tiling, meaning that geometry items can be added to the control list at two levels: at the macro tile level or at a lower level (e.g., the tile level or tile group level). However, in other examples, there may be more than two levels of tiling. In these examples, the method will determine whether a geometry item can be considered "large" at the top-level tile, i.e., relative to the largest area in the rendering space where the control list is being created. If a geometry item is large relative to the top-level area, it is added to the control list of that top-level area, but not to the control list of lower-level areas within that top-level area. However, if a geometry item is not large relative to the top-level area, the method can move down one level and determine whether the geometry item is large relative to any area in the new level. Whether a geometry item is large relative to an area can be determined as described above (e.g., by comparing a bounding box or area to a threshold), regardless of the level of that area in the region's hierarchy. The hierarchy can have many levels.
[0094] For example, in the case of three-level tiling, the rendering space can be subdivided into multiple top-level regions (e.g., macro tiles), each macro tile can be subdivided into multiple intermediate-level regions (e.g., tile groups representing 4×4 groups of tiles), and each tile group can be subdivided into multiple bottom-level regions (e.g., tiles). In this example, the method can identify which top-level regions, among the top-level regions, contain the geometry item. For each identified top-level region, an indication of the spatial coverage of the geometry item within the identified top-level region is determined (e.g., as the overlap between the bounding box or area of the identified top-level region and the geometry item). The spatial coverage indication is used to determine whether to add the geometry item to the top-level control list (e.g., macro tile control list) of the identified top-level region (e.g., macro tile), or to continue processing the geometry item in the lower-level tiling (e.g., in the intermediate levels). At the intermediate-level tiling, the method identifies which intermediate-level regions (e.g., tile groups) contain the geometry item. For each identified intermediate-level region, an indication of the spatial coverage of geometric items within the identified intermediate-level region is determined (e.g., as the overlap between the bounding box or area of the identified intermediate-level region and the geometric item). This spatial coverage indication is used to determine whether to add the geometric item to the intermediate-level control list of the identified intermediate-level region (e.g., a tile group control list) or to one or more control lists at the bottom level (e.g., a tile's tile control list). In an example such as a tiled layout with three levels: the intermediate-level region (e.g., a tile group) may be referred to as the "first region," and the intermediate-level control list may be referred to as the "first control list"; the bottom-level region (e.g., a tile) may be referred to as the "second region," and the bottom-level control list may be referred to as the "second control list"; and the top-level region (e.g., a macro tile) may be referred to as the "third region," and the top-level control list may be referred to as the "third control list."
[0095] In examples where control lists are created at more than two (e.g., three) levels, during the rendering phase, when rendering a specific tile, there may be more than two (e.g., three) control lists associated with rendering that specific tile, and all of these control lists will be processed together. A pointer is maintained for each control list to track which geometry items in different control lists have been processed, ensuring that geometry items for a specific tile are rendered in the order of submission, even if geometry items can be included in multiple separate control lists. For example, if there are three levels of tiling, and control lists are created at the macro tile level, tile group level, and tile level, then when rendering a specific tile, the three control lists used are the tile control list for the specific tile, the tile group control list for the tile group to which the specific tile is part, and the macro tile control list for the tile group and the macro tile to which the specific tile is part.
[0096] Total coverage In some examples, as described above, if a geometry item completely covers a first region, then that geometry item may only be included in a first control list of the first region (e.g., a macro block control list of a macro block). Therefore, in these examples, in the case of only two levels of tiling (e.g., a macro block level and a tile level), an indication of the spatial coverage of a geometry item relative to a macro block is determined, and if the determined indication of spatial coverage indicates that the geometry item completely covers the macro block, then the geometry item is added to the macro block control list of that macro block; and if the determined indication of spatial coverage indicates that the geometry item does not completely cover the macro block, then the geometry item is added to one or more tile control lists of one or more tiles within the macro block that contain the geometry item.
[0097] In these examples, a geometry item is included in the macro tile control list only if it completely covers the macro tile. For example, the method could include determining whether a geometry item completely covers (i.e., fully covers) the macro tile by determining whether it overlaps the entire area of the macro tile, or by determining whether it exists at every sample location within the macro tile. As mentioned above, one of the steps performed on geometry items during the rendering phase for rendering a particular tile is to sample the geometry item to determine which sample locations within the particular tile it exists at. However, in these examples, if a geometry item completely covers the macro tile, it is only included in the macro tile control list, meaning its presence in the macro tile control list implies its existence at every sample location within the macro tile. Therefore, when rendering a particular tile within a macro tile, the step of sampling the geometry item to determine which sample locations within the particular tile it exists at can be skipped for geometry items included in the relevant macro tile control list, since it is known that these geometry items will exist at every sample location within the particular tile. In other words, rendering geometric items within a tile may include (e.g., by sampling the geometric items) selectively processing the geometric items to determine which sample points within the tile are covered by the geometric items, where this processing is skipped for geometric items in the macro tile control list (e.g., sampling the geometric items) because it is known that geometric items in the macro tile control list cover all sample points within the tile. Skipping the processing involved in sampling geometric items to determine which sample locations of the geometric items exist within a particular tile can reduce the amount of processing required in the rendering stage, which can have technical advantages such as reduced power consumption and reduced latency.
[0098] However, in some examples, as mentioned above, even if a geometry item does not completely cover a macro tile, it can be included in the macro tile control list if it is "large" relative to the corresponding macro tile. Furthermore, in all the examples above, a geometry item can be included in the tile control list of the tile in which it exists, regardless of whether the geometry item completely covers the tile. Therefore, in some cases, the information that a geometry item exists in the control list of a region is insufficient to determine whether the geometry item completely covers the region. Therefore, in some examples, additional data can be stored for the geometry item, for example in the region's control list, to indicate whether the geometry item completely covers the region. This additional data could be a flag (e.g., a one-bit flag) for each geometry item included in the control list to indicate whether the geometry item completely covers the region associated with the control list.
[0099] The concept of determining whether a geometry item completely covers an area during the geometry processing stage, and skipping the sampling of geometry items (i.e., to determine which sample locations in a particular tile contain geometry items) during the rendering stage, can be used in systems that use multi-layer tiling as described above, but can also be used in other systems, such as systems that do not use multi-layer tiling, i.e., systems that use single-layer tiling.
[0100] Figure 6 An example of region 602 in the rendering space and two primitives 604 and 606 is shown. Region 602 can be, for example, a tile or a set of tiles. Figure 6 In the example shown, region 602 is square, but in other examples, the region could be other shapes, such as rectangles. Figure 6 In the example shown, the two primitives 604 and 606 are triangles, but in other examples, the primitives can be other shapes.
[0101] refer to Figure 7 The flowchart describes a method for rendering primitives that uses the concept of skipping sampling of primitives that completely cover the rendering space (i.e., to determine which sample locations of primitives exist within a particular tile). Similar to the example above, Figure 7 The method shown includes a geometry processing phase performed by geometry processing logic (e.g., geometry processing logic 104), followed by a rendering phase performed by rendering logic (e.g., rendering logic 106). In the geometry processing phase, geometry items (e.g., primitives) are processed to determine which primitives (and other geometry items) exist in which regions (e.g., tiles, tile groups, or macro tiles) of the rendering space. Then, in the rendering phase, the region is rendered by retrieving all geometry associated with that region (rather than geometry unrelated to that region), and the retrieved geometry can then be processed to determine the rendering value for each sample point within the region. As described above, one or more sample points may exist for each pixel in the region.
[0102] In step S702, the primitives are processed (e.g., by performing "tiling") to identify which regions (e.g., tiles) the primitives exist in. Methods for performing tiling are known in the art, some of which are described above.
[0103] In step S704, one of the identified regions is selected.
[0104] In step S706, data indicating the presence of graphic elements within the identified area is stored. For example, graphic element indication data for an area may be stored (e.g., in a control list) to indicate the identified graphic elements in that area.
[0105] In step S708, the geometry processing logic determines whether a primitive completely covers the area. If it is determined in step S708 that a primitive completely covers the area, then in step S710, data for the primitive is stored to indicate the total coverage of the area. For example, the stored data for the primitive may include a flag indicating the total coverage of the area. However, if it is determined in step S708 that a primitive does not completely cover the area, step S710 is bypassed, i.e., this step is not performed, and the method proceeds from step S708 to step S712. In some examples, if it is determined that a primitive does not completely cover the area, data for the primitive may be stored to indicate that the primitive does not completely cover the area. The stored data (e.g., a flag) may be stored together with primitive indication data indicating which primitives are present in the area in a control list of the area. Thus, the control list of the area may include indications of the primitives present in the area, and for each indicated primitive, there may be an indication (e.g., a one-bit flag) indicating whether the primitive completely covers the area.
[0106] In different examples, the way step S708 is performed, i.e., the way to determine whether a graphic element completely covers the region, can differ. For example, in step S708, the region can be considered an area, such that determining whether a graphic element completely covers the region includes determining whether the graphic element covers the entire area of the region. In some alternative examples, the positions of sampling points within the region can be considered, such that determining whether a graphic element completely covers the region includes determining whether the graphic element covers every sampling point in the region.
[0107] Step S708, determining whether a primitive completely covers an area, may include processing each edge of the primitive by: (i) determining which corners of the area are most likely outside the edge, and (ii) determining whether the determined corners are inside the edge. Methods for performing these two determinations are known in the field. Determining whether a determined corner is inside the edge can be done using calculations involving the equations of lines describing the positions of the edges and the determined corners. If all determined corners are determined to be inside the corresponding edges, the primitive will completely cover the area; however, if for any edge of the primitive, the determined corners are outside the edges, the primitive will not completely cover the area. For example, refer to... Figure 6 For primitive 604, regarding its upper left edge, corner C0 is the most likely corner in region 602 outside the edge, and it can be seen that corner C0 is outside the upper left edge of primitive 604. Thus, it is determined that primitive 604 does not completely cover region 602.
[0108] For element 606, regarding its left edge, corner C0 is determined to be most likely outside the edge, but it is also determined to be inside the left edge of element 606. Similarly, for the top right edge of element 606, corner C1 is determined to be most likely outside the edge, but it is also determined to be inside the top right edge of element 606. Similarly, for the bottom edge of element 606, corner C3 is determined to be most likely outside the edge, but it is also determined to be inside the bottom edge of element 606. Therefore, element 606 will completely cover region 602.
[0109] The processes involved in performing calculations to determine whether a corner point is inside an edge (e.g., evaluating the equation of a straight line) can be important, for example, in terms of system power consumption and latency, especially since they can be performed on many (e.g., millions) primitives and many (e.g., thousands) regions. Therefore, in some examples, and in certain cases, at least some of these calculations can be avoided. In particular, it can be determined by a simple test that a primitive absolutely does not completely cover a region. When a triangular primitive completely covers a region (where the region is rectangular (the term "rectangle" includes squares)), the size of the primitive's bounding box must be greater than or equal to the size of the corresponding region, and at least one size of the bounding box must be greater than or equal to twice the size of the corresponding region. Therefore, the steps to determine whether a primitive completely covers a region may include identifying regions that are absolutely not completely covered by the primitive by: determining the bounding box of the primitive (e.g., an axis-aligned bounding box, i.e., a rectangular bounding box aligned with the orientation of the rectangular region), determining the size of the bounding box in the horizontal and vertical directions, and then aligning the bounding box in the horizontal (BB) direction. x The size of the region in the horizontal direction (R) is related to the region's size in the horizontal direction (R). x Compare the sizes on the bounding box and compare the bounding box in the vertical direction (BB). y The size of the region in the vertical direction (R) is related to the region's size in the vertical direction. y The size of the primitive is compared. If any of the following conditions are met, the region not fully covered by the primitive is determined: (i) BB x < R x (ii) BB y < R y , or (iii) (BB) x < 2R x ) and (BB) y < 2R yThis eliminates the need to perform the aforementioned calculations involving the equations of straight lines at the edges of primitives (which can be referred to as coverage testing). If all these conditions are not met, a deterministic decision regarding complete coverage still needs to be made. In this case, the method can continue to perform coverage testing on primitives to make that determination. As mentioned above, the number of coverage tests can be reduced by using bounding boxes, which can reduce processing power and latency in the system. It should be noted that computationally, determining the bounding boxes of primitives (e.g., axis-aligned bounding boxes) is quite simple, and the size of the bounding box is compared with the size of the region to determine whether the three conditions mentioned above are met.
[0110] In step S712, the geometry processing logic determines whether there are more identified regions for the primitive. If so, the method returns to step S704, where another identified region is selected for the region, and steps S706 to S710 are executed for the newly selected region. If it is determined in step S712 that there are no more identified regions for the primitive, the method proceeds to step S714, where it is determined whether there are any other primitives to be processed in the current rendering during the geometry processing stage. If there is another unprocessed primitive in the current rendering, the method returns to step S702, and the method is executed for the new primitive. However, if there are no other unprocessed primitives in the current rendering, the geometry processing stage of the current rendering is completed.
[0111] The rendering phase can then begin. As described above, the rendering phase can be performed, for example, by rendering logic on a region basis, or by rendering tiles. This allows individual regions to be rendered independently. A control list for the regions identifies which primitives are associated with rendering a specific region, such as which primitives exist within that region. In step S716, stored data of the primitives present in the region can be retrieved. This stored data may include data describing the primitives (such as location and attribute data), and may also include data stored during the geometry processing phase indicating whether the primitives completely cover the region.
[0112] Part of the rendering phase for a region involves performing sampling to determine the sampling points where primitives exist within the region, and determining the primitive fragments at the sampling points where the primitives reside. As described above, this process can be referred to as "scan conversion" or "rasterization." If it is known that a primitive completely covers the region, it is known that the primitive exists at every sampling point within the region, without performing any further processing (e.g., the sampling described above) to determine this. Therefore, the rendering phase includes selectively processing the primitives present in the region based on the retrieved data to determine which sampling points within the region are covered by the primitive, wherein if the retrieved data indicates the total coverage of a particular primitive within the region, the process of determining which sampling points within the region are covered by the particular primitive is skipped. Specifically, in step S718, the rendering logic determines whether the retrieved data for the primitive indicates that the primitive completely covers the region, and if the primitive completely covers the region, the method proceeds to step S722 for that primitive, i.e., skipping or bypassing step S720. However, if it is determined in step S718 that the primitive does not completely cover the area, the method will then proceed from step S718 to step S720, in which sampling is performed to determine which sampling points are within the primitive-covered area.
[0113] For example, when the rendering logic is rendering region 602, both primitive 604 and primitive 606 will be indicated as existing within region 602. Data will be stored during the geometry processing phase of primitive 606 to indicate that the primitive completely covers region 602, but primitive 604 does not completely cover the region. Therefore, during the rendering phase, when processing primitive 604, sampling is performed in step S720 to determine which sample points of region 602 primitive 604 exists at. However, during the rendering phase, when processing primitive 606, sampling can be skipped (i.e., step S720), and the rendering logic determines that the primitive exists at all sample points within region 602 without performing sampling for the primitives.
[0114] In step S722, primitive fragments representing primitives at sampling points within the region are processed to determine the rendering value at the sampling points. In other words, the rendering value is determined at the sampling points within the region based on the primitives covering the corresponding sampling points. This rendering uses primitive data present in the region (e.g., primitive data interpolated at each sampling point where the primitive exists). Step S722 involves processing primitive fragments by performing processes such as hidden surface removal, texturing, and / or shading to determine the rendering value. The fragment processing operations performed in step S722 are known in the art and can be performed in different ways in different examples.
[0115] A rendering phase is performed for each region within the rendering space, allowing rendering values to be determined for the entire rendering process. Rendering values can be provided to memory, for example, for storage in a frame buffer. Rendering values can represent an image of the scene as seen from the viewpoint. In some examples, rendering values can represent textures to be applied to surfaces in the scene. Rendering values can be used in any suitable manner; for example, if the rendering values represent an image of the scene, they can be displayed on a monitor, stored in memory, or transferred to other devices, etc.
[0116] Figure 8 A computer system is shown in which the graphics processing system described herein can be implemented. The computer system includes a CPU 802, a GPU 804, a memory 806, and other devices 808, such as a display 810, speakers 812, and a camera 814. The components of the computer system can communicate with each other via a communication bus 816. At least a portion of the memory 806 can be used as… Figure 1 The memory 102 shown.
[0117] Figure 1 The graphics processing system is shown as comprising multiple functional blocks. This is merely illustrative and not intended to define a strict division between different logical elements of such an entity. Each functional block may be provided in any suitable manner. It should be understood that the intermediate values described herein formed by the graphics processing system do not need to be physically generated by the graphics processing system at any point in time, and may only represent logical values that conveniently describe the processing performed by the graphics processing system between its inputs and outputs.
[0118] The graphics processing unit described herein can be embodied as hardware on an integrated circuit. The graphics processing unit described herein can be configured to perform any of the methods described herein. Generally, any of the functions, methods, techniques, or components described above can be implemented in software, firmware, hardware (e.g., a fixed logic circuit system), or any combination thereof. The terms “module,” “function,” “component,” “element,” “unit,” “block,” and “logic” are used herein to generally denote software, firmware, hardware, or any combination thereof. In the case of a software implementation, a module, function, component, element, unit, block, or logic represents program code that, when executed on a processor, performs a specified task. The algorithms and methods described herein can be executed by one or more processors that execute code that causes the processor to perform the algorithm / method. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disk, flash memory, hard disk storage, and other memory devices that can use magnetic, optical, and other techniques to store instructions or other data and can be accessed by a machine.
[0119] As used herein, the terms computer program code and computer-readable instructions refer to any kind of executable code for a processor, comprising code expressed in machine language, interpreted language, or scripting language. Executable code includes binary code, machine code, bytecode, code defining integrated circuits (e.g., hardware description languages or netlists), and code expressed in programming languages such as C, Java, or OpenCL. Executable code can be, for example, any kind of software, firmware, script, module, or library that, when properly executed, processed, interpreted, compiled, or run in a virtual machine or other software environment, causes the processor of a computer system that supports the executable code to perform tasks specified by said code.
[0120] A processor, computer, or computer system can be any kind of device, machine, or special-purpose circuit, or a collection or part thereof, that has the processing power to execute instructions. A processor can be any kind of general-purpose or special-purpose processor, such as a CPU, GPU, system-on-a-chip, state machine, media processor, application-specific integrated circuit (ASIC), programmable logic array, field-programmable gate array (FPGA), etc. A computer or computer system may include one or more processors.
[0121] This invention also intends to cover software defining the configuration of hardware as described herein, such as hardware description language (HDL) software, for designing integrated circuits or for configuring programmable chips to perform desired functions. That is, a computer-readable storage medium on which computer-readable program code in the form of an integrated circuit definition dataset is provided, which, when processed (i.e., run) in an integrated circuit manufacturing system, configures the system to manufacture a graphics processing system configured to perform any of the methods described herein, or to manufacture a graphics processing system including any of the means described herein. The integrated circuit definition dataset may be, for example, an integrated circuit description.
[0122] Therefore, a method for manufacturing a graphics processing system as described herein can be provided in an integrated circuit manufacturing system. Furthermore, an integrated circuit definition dataset can be provided, which, when processed in the integrated circuit manufacturing system, enables the method for manufacturing the graphics processing system to be executed.
[0123] Integrated circuit definition datasets can be in the form of computer code, such as netlists, code for configuring programmable chips, or hardware description languages suitable for manufacturing at any level in integrated circuits, including register-transfer level (RTL) code, high-level circuit representations (such as Verilog or VHDL), and low-level circuit representations (such as OASIS (RTM) and GDSII). Higher-level representations (such as RTL) that logically define hardware suitable for manufacturing in integrated circuits can be processed on a computer system configured to generate manufacturing definitions of integrated circuits within the context of a software environment that includes definitions of circuit elements and rules for combining these elements to generate the manufacturing definition of the integrated circuit defined by that representation. As is typically the case where software executes at a computer system to define a machine, one or more intermediate user steps (e.g., providing commands, variables, etc.) may be required to configure the computer system to generate the manufacturing definition of the integrated circuit, executing code that defines the integrated circuit in order to generate the manufacturing definition of the integrated circuit.
[0124] Now refer to Figure 9 This describes an example of processing integrated circuit definition datasets at an integrated circuit manufacturing system in order to configure the system for manufacturing graphics processing systems.
[0125] Figure 9 An example of an integrated circuit (IC) manufacturing system 902 is shown, configured to manufacture a graphics processing system as described in any of the examples herein. Specifically, the IC manufacturing system 902 includes a layout processing system 904 and an integrated circuit generation system 906. The IC manufacturing system 902 is configured to receive an IC definition dataset (e.g., defining a graphics processing system as described in any of the examples herein), process the IC definition dataset, and generate an IC (e.g., embodying the graphics processing system as described in any of the examples herein) based on the IC definition dataset. Through the processing of the IC definition dataset, the IC manufacturing system 902 is configured to manufacture an integrated circuit embodying the graphics processing system as described in any of the examples herein.
[0126] The layout processing system 904 is configured to receive and process an IC definition dataset to determine a circuit layout. Methods for determining a circuit layout based on an IC definition dataset are known in the art and may involve, for example, synthesizing RTL code to determine the gate-level representation of the circuit to be generated, for example, in relation to logic components (e.g., NAND, NOR, AND, OR, MUX, and FLIP-FLOP components). By determining the location information of the logic components, the circuit layout can be determined based on the gate-level representation of the circuit. This can be done automatically or with user intervention to optimize the circuit layout. Once the layout processing system 904 has determined the circuit layout, it can output the circuit layout definition to the IC generation system 906. The circuit layout definition may be, for example, a circuit layout description.
[0127] As is known in the art, IC generation system 906 generates ICs according to a circuit layout definition. For example, IC generation system 906 can implement a semiconductor device manufacturing process for generating ICs, which may involve a multi-step sequence of photolithography and chemical processing steps, during which electronic circuits are gradually formed on a wafer made of semiconductor material. The circuit layout definition may be in the form of a mask, which can be used in the photolithography process to generate ICs according to the circuit definition. Alternatively, the circuit layout definition provided to IC generation system 906 may be in the form of computer-readable code, which IC generation system 906 can use to form a suitable mask for generating ICs.
[0128] The various processes performed by the IC manufacturing system 902 can all be implemented in one location, for example, by one party. Alternatively, the IC manufacturing system 902 can be a distributed system, allowing some processes to be performed in different locations and by different parties. For example, some of the following stages can be performed in different locations and / or by different parties: (i) synthesizing RTL code representing an IC definition dataset to form a gate-level representation of the circuit to be generated; (ii) generating a circuit layout based on the gate-level representation; (iii) forming a mask based on the circuit layout; and (iv) using the mask to manufacture the integrated circuit.
[0129] In other examples, processing of an integrated circuit definition dataset in an integrated circuit manufacturing system can configure the system to manufacture a graphics processing system without processing the IC definition dataset to determine circuit layout. For example, an integrated circuit definition dataset can define the configuration of a reconfigurable processor, such as an FPGA, and processing of the dataset can configure the IC manufacturing system (e.g., by loading the configuration data into the FPGA) to generate a reconfigurable processor with the defined configuration.
[0130] In some implementations, when processed in an integrated circuit manufacturing system, the integrated circuit manufacturing definition dataset can enable the integrated circuit manufacturing system to generate devices as described herein. For example, the integrated circuit manufacturing definition dataset referenced above... Figure 9 The described method configures an integrated circuit manufacturing system to manufacture devices as described herein.
[0131] In some examples, an integrated circuit definition dataset may include software running on hardware defined at the dataset, or software running in combination with hardware defined at the dataset. Figure 9 In the example shown, the IC generation system can be further configured by the integrated circuit definition dataset to load firmware onto the integrated circuit according to the program code defined at the integrated circuit definition dataset during the manufacturing of the integrated circuit, or otherwise provide the integrated circuit with program code for use with the integrated circuit.
[0132] Compared to known implementations, the implementation of the concepts set forth in this application in devices, apparatuses, modules, and / or systems (and in the methods implemented herein) can lead to performance improvements. Performance improvements may include one or more of increased computational performance, reduced latency, increased throughput, and / or reduced power consumption. During the manufacture of such devices, apparatuses, modules, and systems (e.g., in integrated circuits), trade-offs can be made between performance improvements and physical implementation methods, thereby improving manufacturing methods. For example, a trade-off can be made between performance improvements and layout area, thereby matching the performance of known implementations but using less silicon. This can be accomplished, for example, by reusing functional blocks serially or sharing functional blocks among elements of a device, apparatus, module, and / or system. Conversely, the concepts set forth in this application that lead to improvements in the physical implementation of devices, apparatuses, modules, and systems (such as reduced silicon area) can be traded off for performance improvements. This can be accomplished, for example, by manufacturing multiple instances of a module within a predefined area budget.
[0133] The applicant has independently disclosed each individual feature described herein, as well as any combination of two or more such features, to the extent that such features or combinations can be implemented based on the specification as a whole, in accordance with the common knowledge of those skilled in the art, regardless of whether such features or combinations of features solve any problem disclosed herein. In view of the foregoing description, those skilled in the art will understand that various modifications can be made within the scope of this invention.
Claims
1. A method for rendering primitives in a tile-based graphics processing system, the graphics processing system being configured to use a rendering space subdivided into multiple regions, the method comprising: For the current rendering, a geometry processing phase is performed, which includes: Receive a set of primitives; and For each of the multiple regions: Determine which of the set of graphic elements exist in the region, thereby determining the multiple graphic elements present in the region; For each of the plurality of graphic elements present in the region, determine whether the graphic element completely covers the region; and The data stores the plurality of graphic elements present in the area, wherein the stored data includes graphic element indication data for the area, the graphic element indication data being used to indicate the determined plurality of graphic elements present in the area, and also includes data indicating the total coverage area of the area for each graphic element determined to completely cover the area; and After the geometry processing stage is completed for the current rendering, for the current rendering, a rendering stage for rendering the primitives within each of the plurality of regions is performed on a region-by-region basis, including: Retrieve the stored data of the primitives existing in the region; Based on the primitive indication data of the region, retrieve the primitive data of the primitive existing in the region; The primitives present in the region are selectively processed based on the retrieved data to determine which sampling points in the region are covered by the primitives, wherein if the retrieved data includes data indicating the total coverage of the region of a particular primitive, the process of determining which sampling points in the region are covered by the particular primitive is skipped. The rendering value at the sampling point within the region is determined based on the primitives covering the corresponding sampling point, wherein determining the rendering value includes using the retrieved primitive data.
2. The method as described in claim 1, wherein, For each region, the primitive indication data for that region is stored in the control list for that region, and the primitive data used to indicate whether the primitive completely covers the region is stored in the control list for that region.
3. The method of claim 1 or 2, wherein determining whether the graphic element completely covers the region includes determining whether the graphic element covers every sampling point in the region.
4. The method of claim 1 or 2, wherein determining whether the graphic element completely covers the region includes determining whether the graphic element covers the entire area of the region.
5. The method of claim 1 or 2, wherein determining whether the graphic element completely covers the area comprises: Determine the axis-aligned bounding box of the primitive, wherein the primitive is a triangle; Determine the size of the bounding box in the horizontal and vertical directions; Compare the bounding box in the horizontal direction (BB) x The size of the region in the horizontal direction (R) and the region in the horizontal direction (R) x The size of the bounding box in the vertical direction (BB) is compared. y The size of the region in the vertical direction (R) and the region in the vertical direction (R) y The size of the area, where the area is rectangular. If any of the following conditions are met, the graphic element is determined to not completely cover the area: (i)BBx < Rx, (ii) BBy < Ry, or (iii) (BBx < 2Rx) and (BBy < 2Ry).
6. The method of claim 1 or 2, wherein determining whether the graphic element completely covers the area comprises: For each edge of the primitive: Determine which corners of the region are most likely outside the edge; as well as Determine whether the identified corner is inside the edge.
7. The method of claim 1 or 2, wherein the region is a tile of the rendering space.
8. The method of claim 1 or 2, wherein the region is a set of tiles in the rendering space.
9. The method of claim 1 or 2, wherein the data for indicating the total coverage of the region of the primitive includes a marker for indicating the total coverage of the region.
10. The method of claim 1 or 2, wherein the rendered value represents: Scene images viewed from a specific point of view; or The texture of the surface to be applied to the scene.
11. The method of claim 1 or 2, wherein the geometry processing phase is performed without rasterizing the primitives.
12. A tile-based graphics processing system configured to render primitives using a rendering space subdivided into multiple regions, wherein the graphics processing system includes: A geometry processing logic, configured to execute a geometry processing phase for the current rendering, the geometry processing phase including: Receive a set of primitives; and For each of the multiple regions: Determine which of the set of graphic elements exist in the region, thereby determining the multiple graphic elements present in the region; For each of the plurality of graphic elements existing in the region, determine whether the graphic element completely covers the region; and The data stores the plurality of graphic elements present in the region, wherein the stored data includes graphic element indication data for the region, the graphic element indication data being used to indicate the determined plurality of graphic elements present in the region, and also includes data indicating the total coverage area of the region for each of the plurality of graphic elements determined to completely cover the region; and The rendering logic is configured to, after the geometry processing logic has completed the geometry processing stage for the current rendering, perform a rendering stage for each of the plurality of regions on a region-by-region basis for the current rendering, including: Retrieve the stored data of the primitives existing in the region; Based on the primitive indication data of the region, retrieve the primitive data of the primitive existing in the region; Based on the retrieved data, the primitives present in the region are selectively processed to determine which sampling points in the region are covered by the primitives, such that if the retrieved data includes data indicating the total coverage of a region of a particular primitive, the process of determining which sampling points in the region are covered by the particular primitive is skipped. The retrieved metadata is used to determine the rendering value at the sampling point within the region based on the metadata covering the corresponding sampling point.
13. The graphics processing system of claim 12, wherein the geometry processing logic is configured to store in the control list of the region: (i) primitive indication data of the region, and (ii) data indicating whether the primitive completely covers the region.
14. The graphics processing system of claim 12 or 13, wherein the geometry processing logic is configured to determine whether the primitive completely covers the region by: Determine the axis-aligned bounding box of the primitive, wherein the primitive is a triangle; Determine the size of the bounding box in the horizontal and vertical directions; Compare the bounding box in the horizontal direction (BB) x The size of the region in the horizontal direction (R) and the region in the horizontal direction (R) x The size of the bounding box in the vertical direction (BB) is compared. y The size of the region in the vertical direction (R) and the region in the vertical direction (R) y The size of the area, where the area is rectangular. If any of the following conditions are met, the graphic element is determined to not completely cover the area: (i)BBx < Rx, (ii) BBy < Ry, or (iii) (BBx < 2Rx) and (BBy < 2Ry).
15. A computer-readable storage medium having computer-readable code stored thereon, the computer-readable code being configured to cause the method according to any one of claims 1 to 11 to be performed when the code is executed.
16. A computer-readable storage medium storing an integrated circuit definition dataset thereon, wherein when the integrated circuit definition dataset is processed in an integrated circuit manufacturing system, the integrated circuit manufacturing system is configured to manufacture a graphics processing system as claimed in any one of claims 12 to 14.
17. A method for manufacturing a graphics processing system as described in any one of claims 12 to 14 using an integrated circuit manufacturing system, the method comprising: A layout processing system is used to process a computer-readable description of the graphics processing system in order to generate a circuit layout description that embodies the integrated circuit of the graphics processing system. as well as The graphics processing system is manufactured using an integrated circuit manufacturing system based on the circuit layout description.
Citation Information
Patent Citations
Graphics processing
US20190188896A1
