# US 2020/0402297 A1 · Primitive fragment processing in the rasterization phase of a graphics processing system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0402297 A1
- Document ID: US20200402297A1
- Status: Published application
- Kind: A1
- Application number: 16/906,256
- Filed: 2020-06-19
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Robert Brigg; Lorenzo Belli
- Web page: https://patentgrep.com/patent/US20200402297A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T 15/405: {using Z-buffer}
- G06F 7/24: Sorting, i.e. extracting data from one or more carriers, rearranging the data in numerical or other ordered sequence, and rerecording the sorted data on the original carrier or on a different carrier or set of carriers {sorting methods in general}(G06F7/36 takes precedence)
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06T 1/60: Memory management
- G06T 7/50: Depth or shape recovery
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 15/20: Perspective computation
- G06T 15/40: Hidden part removal
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 2207/10028: Range image; Depth image; 3D point clouds
- G06T 2207/20021: Dividing image into blocks, subimages or windows
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for processing primitive fragments in a rasterization phase of a graphics processing system wherein a rendering space is subdivided into a plurality of tiles. The method includes receiving a plurality of primitive fragments, each primitive fragment corresponding to a pixel sample in a tile; determining whether a depth buffer read is to be performed for hidden surface removal processing of one or more of the primitive fragments; sorting the primitive fragments into a priority queue and a non-priority queue based on the depth buffer read determinations; and performing hidden surface removal processing on the primitive fragments in the priority and non-priority queues wherein priority is given to the primitive fragments in the priority queue.

## Claims

### Claim 1

A system for processing primitive fragments in a rasterization phase of a graphics processing system wherein a rendering space is subdivided into a plurality of tiles, the system comprising:
a priority queue for storing primitive fragments;
a non-priority queue for storing primitive fragments;
logic configured to:
receive a plurality of primitive fragments, each primitive fragment corresponding to a pixel sample in a tile,
determine whether a depth buffer read is to be performed for hidden surface removal processing of one or more of the primitive fragments, and
sort the primitive fragments into the priority queue and the non-priority queue based on the depth buffer read determinations; and
hidden surface removal logic configured to perform hidden surface removal processing on the primitive fragments in the priority and non-priority queues wherein priority is given to the primitive fragments in the priority queue.

### Claim 2 (depends on 1)

The system of claim 1, wherein the logic is configured to sort the primitive fragments into the priority queue and the non-priority queue based on the depth buffer read determinations by placing only primitive fragments for which a depth buffer read is not to be performed in the priority queue and placing any primitive fragment for which a depth buffer read is to be performed in the non-priority queue.

### Claim 3 (depends on 2)

The system of claim 2, wherein the plurality of primitive fragments is divided into one or more sets of primitive fragments wherein each set is associated with one tile of the plurality of tiles.

### Claim 4 (depends on 3)

The system of claim 3, wherein the logic is further configured to sort the primitive fragments into the priority queue and the non-priority queue based on the depth buffer read determinations by placing any primitive fragment in a same set of primitive fragments as a primitive fragment in the non-priority queue in the non-priority queue regardless of whether a depth buffer read is to be performed for that primitive fragment.

### Claim 5 (depends on 3)

The system of claim 3, wherein the logic is further configured to, in response to placing a first primitive fragment of a set of primitive fragments in the non-priority queue, initiate a read of the depth buffer for the tile associated with the set of primitive fragments.

### Claim 6 (depends on 1)

The system of claim 1, wherein the hidden surface removal logic is configured to only perform hidden surface removal processing on a primitive fragment in the non-priority queue if the priority queue is empty unless one of one or more exception conditions exist.

### Claim 7 (depends on 6)

The system of claim 6, wherein the one or more exception conditions comprises one or more of: a first primitive fragment in the non-priority queue relates to a tile for which a depth buffer for that tile is in a depth buffer cache; the depth buffer cache is full; and a number of primitive fragments in the non-priority queue exceeds a threshold.

### Claim 8 (depends on 1)

The system of claim 1, wherein the logic is configured to determine whether a depth buffer read is to be performed for hidden surface removal processing of a primitive fragment in a set of primitive fragments associated with a tile of the plurality of tiles by:
making a coarse determination, based on a depth range for the tile, as to whether the primitive fragment, or the primitive from which the primitive fragment was generated, has better depth in the tile than primitives previously processed for that tile according to a depth compare mode; and
in response to making a determination that the primitive fragment or the primitive has better depth in the tile than the primitives previously processed for that tile, determining that a depth buffer read is not to be performed for hidden surface removal processing of the primitive fragment.

### Claim 9 (depends on 8)

The system of claim 8, wherein the logic is further configured to determine whether a depth buffer read is to be performed for hidden surface removal processing of the primitive fragment by:
maintaining a record of pixel samples of the tile for which a best depth value is available;
in response to making a determination that the primitive fragment or the primitive has a better depth in the tile than the primitives previously processed for that tile, updating the record to indicate that the best depth value for each pixel sample in the tile associated with the primitive fragment or the primitive is available;
in response to making a determination that the primitive fragment or the primitive does not have better depth in the tile than the primitives previously processed for that tile, determining whether the record indicates that the best depth value is available for each pixel sample in the tile associated with the primitive fragment or the primitive; and
in response to making a determination that the record indicates that the best depth value is available for each pixel sample in the tile associated with the primitive fragment or the primitive, determining that a depth buffer read is not to be performed for hidden surface removal processing of that primitive fragment.

### Claim 10 (depends on 1)

The system of claim 1, wherein at least one of the priority queue and the non-priority queue is configured to store a primitive fragment by storing information that identifies that primitive fragment.

### Claim 11 (depends on 1)

The system of claim 1, wherein at least one of the priority queue and the non-priority queue is configured to store primitive fragments by storing co-ordinate data defining that primitive fragment.

### Claim 12

A method of processing primitive fragments in a rasterization phase of a graphics processing system wherein a rendering space is subdivided into a plurality of tiles, the method comprising:
receiving a plurality of primitive fragments, each primitive fragment corresponding to a pixel sample in a tile;
determining whether a depth buffer read is to be performed for hidden surface removal processing of one or more of the primitive fragments; and
sorting the primitive fragments into a priority queue and a non-priority queue based on the depth buffer read determinations; and
performing hidden surface removal processing on the primitive fragments in the priority and non-priority queues wherein priority is given to the primitive fragments in the priority queue.

### Claim 13 (depends on 12)

A graphics processing system configured to perform the processing of primitive fragments as set forth in claim 12.

### Claim 14 (depends on 1)

The system of claim 1, wherein the system is embodied in hardware on an integrated circuit.

### Claim 15 (depends on 1)

A method of manufacturing, using an integrated circuit manufacturing system, the system as set forth in claim 1, the method comprising:
processing, using a layout processing system, a computer readable description of the system so as to generate a circuit layout description of an integrated circuit embodying the system; and
manufacturing, using an integrated circuit generation system, the system according to the circuit layout description.

### Claim 16 (depends on 12)

A non-transitory computer readable storage medium having stored thereon computer readable instructions that, when executed at a computer system, cause the computer system to perform the processing of primitive fragments as set forth in claim 12.

### Claim 17 (depends on 1)

A non-transitory computer readable storage medium having stored thereon a computer readable dataset description of the system as set forth in claim 1 that, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to manufacture an integrated circuit embodying the system.

### Claim 18 (depends on 1)

An integrated circuit manufacturing system comprising:
a non-transitory computer readable storage medium having stored thereon a computer readable dataset description of the system as set forth in claim 1;
a layout processing system configured to process the computer readable description so as to generate a circuit layout description of an integrated circuit embodying the system; and
an integrated circuit generation system configured to manufacture the system according to the circuit layout description.
