# US 2023/0410427 A1 · Reducing redundant rendering in a graphics system

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

- Number: US 2023/0410427 A1
- Document ID: US20230410427A1
- Status: Published application
- Kind: A1
- Application number: 18/129,126
- Filed: 2023-03-31
- Published: 2023-12-21
- Earliest claimed: 2022-03-31
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: John W. Howson; Xile Yang; Maurizio Zucchelli
- Web page: https://patentgrep.com/patent/US20230410427A1

## CPC

- G06T 1/60: Memory management
- G06T 15/005: {General purpose rendering architectures}
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 2210/08: Bandwidth reduction
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method and system for performing a render using a graphics processing unit that implements a tile-based graphics pipeline where a rendering space is sub-divided into tiles. Geometry data for the render is received, the geometry data including primitives associated with one or more vertex shader programs. The geometry data is processed using the vertex shader programs to generate processed primitives, and it is determined in which tile each of the processed primitives are located. For at least one selected tile there is stored i) a representation of per-tile vertex shader data identifying the one or more vertex shader programs used to generate the processed primitives in that tile, and ii) a representation of per-tile render data that can be used when rendering the processed primitives in that tile in subsequent stages of the graphics pipeline. It is determined whether the output of a previous render for the selected tile(s) can be used as an output for the render by comparing the per-tile vertex shader data of that tile with that of the previous render before comparing the per-tile render data of that tile with that of the previous render.

## Claims

### Claim 1

A method of performing a render using a graphics processing unit configured to implement a tile-based graphics pipeline in which a rendering space is sub-divided into a plurality of tiles, the method comprising:
receiving geometry data for the render, the geometry data comprising a plurality of primitives each associated with one or more vertex shader programs;
processing the geometry data using the one or more vertex shader programs to generate one or more processed primitives;
determining which of the processed primitives are located within each tile of the plurality of tiles;
for at least one selected tile of the plurality of tiles, storing i) a representation of per-tile vertex shader data identifying the one or more vertex shader programs used to generate the processed primitives located within that tile, and ii) a representation of per-tile render data that can be used when rendering the processed primitives within that tile in subsequent stages of the graphics pipeline; and
for the at least one selected tile, determining whether the output of a previous render for that tile can be used as an output for the render by comparing the per-tile vertex shader data of that tile with that of the previous render before comparing the per-tile render data of that tile with that of the previous render.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining whether the output of the previous render for that tile can be used as the output for the render comprises:
determining whether the per-tile vertex shader data matches corresponding per-tile vertex shader data for a previous render;
in response to determining that the per-tile vertex shader data does match, determining whether the per-tile render data of that tile matches corresponding per-tile render data for the previous render; and
in response to determining that the per-tile render data does match, using the output of the previous render for that tile as the output for the render.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining whether the output of the previous render for that tile can be used as the output for the render further comprises: in response to determining that the per-tile vertex shader data does not match, causing the graphics pipeline to render that tile.

### Claim 4 (depends on 2)

The method according to claim 2, wherein determining whether the output of the previous render for that tile can be used as the output for the render further comprises: in response to determining that the per-tile render data does not match, causing the graphics pipeline to render that tile.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising storing render-wide data indicating one or more characteristics of the render and, prior to determining whether the output of a previous render for that tile can be used as an output for the render, using the render-wide data to check whether to skip the per-tile vertex shader data and per-tile render data comparison and cause the graphics pipeline to render that tile.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the render-wide data comprises a clear colour, and using the render-wide data to check whether to skip the per-tile vertex shader data and per-tile render data comparison comprises determining whether the clear colour matches with that of the previous render.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the render-wide data comprises a valid flag, and using the render-wide data to check whether to skip the per-tile vertex shader data and per-tile render data comparison comprises determining whether the valid flag has a predetermined value.

### Claim 8 (depends on 7)

The method according to claim 7, further comprising setting the valid flag to the predetermined value based on at least one of: data indicating that the render is part of a scene using multiple render targets; and the render comprises more draw calls than a threshold number.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising for the at least one selected tile of the plurality of tiles, storing iii) per-tile validity data indicating whether to skip the per-tile vertex shader data and per-tile render data comparison, wherein the per-tile validity data is set based on the number of processed primitives located within that tile.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the per-tile render data comprises vertex coordinate and vertex state data for each of the processed primitives located within that tile.

### Claim 11 (depends on 1)

The method according to claim 1, wherein storing the representation of the per-tile render data comprises generating a hash of the vertex coordinate and vertex state data for each of the processed primitives located within that tile and storing the hash value.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the vertex state data comprises data associated with each vertex used to render the processed primitives in the tile, including one or more of: pixel shader identifiers; varyings; colour data; surface normal data; and texture data.

### Claim 13

A graphics processing system configured to implement a tile-based graphics pipeline in which a rendering space is sub-divided into a plurality of tiles, comprising:
geometry processing logic configured to: receive geometry data for a render, the geometry data comprising a plurality of primitives each associated with one or more vertex shader programs;
and process the geometry data using the one or more vertex shader programs to generate one or more processed primitives;
a tiling unit configured to determine which of the processed primitives are located within each tile;
a data characterisation unit configured to, for at least one selected tile of the plurality of tiles, store in a memory i) a representation of per-tile vertex shader data identifying the one or more vertex shader programs used to generate the processed primitives located within that tile, and ii) a representation of per-tile render data that can be used to render the processed primitives within that tile in subsequent stages of the graphics pipeline; and
a testing unit configured to determine, for the at least one selected tile, whether the output of a previous render for that tile can be used as an output for the render by comparing the per-tile vertex shader data of that tile with that of the previous render before comparing the per-tile render data of that tile with that of the previous render.

### Claim 14 (depends on 13)

The graphics processing system according to claim 13, wherein, to determine whether the output of the previous render for that tile can be used as the output for the render, the testing unit is further configured to:
determine whether the per-tile vertex shader data matches corresponding per-tile vertex shader data for a previous render;
in response to a determination that the per-tile vertex shader data does match, determine whether the per-tile render data of that tile matches corresponding per-tile render data for the previous render; and
in response to a determination that the per-tile render data does match, use the output of the previous render for that tile as the output for the render.

### Claim 15 (depends on 14)

The graphics processing system according to claim 14, wherein, to determine whether the output of the previous render for that tile can be used as the output for the render, the testing unit is further configured to: in response to a determination that the per-tile vertex shader data does not match, cause the graphics pipeline to render that tile.

### Claim 16 (depends on 14)

The graphics processing system according to claim 14, wherein, to determine whether the output of the previous render for that tile can be used as the output for the render, the testing unit is further configured to: in response to a determination that the per-tile render data does not match, cause the graphics pipeline to render that tile.

### Claim 17 (depends on 13)

The graphics processing system according to claim 13, wherein the data characterisation unit is further configured to store render-wide data indicating one or more characteristics of the render and, prior to determining whether the output of a previous render for that tile can be used as an output for the render, use the render-wide data to check whether to skip the per-tile vertex shader data and per-tile render data comparison and cause the graphics pipeline to render that tile.

### Claim 18 (depends on 13)

The graphics processing system according to claim 13, wherein the data characterisation unit is further configured to, for the at least one selected tile of the plurality of tiles, store iii) per-tile validity data indicating whether to whether to skip the per-tile vertex shader data and per-tile render data comparison and render the primitives located within that tile to render the tile, wherein the per-tile validity data is set based on the number of processed primitives located within that tile.

### Claim 19 (depends on 13)

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

### Claim 20

A non-transitory computer readable storage medium having stored thereon an integrated circuit definition dataset that, when processed in an integrated circuit manufacturing system, configures the integrated circuit manufacturing system to manufacture a graphics processing system configured to implement a tile-based graphics pipeline in which a rendering space is sub-divided into a plurality of tiles, the graphics processing system comprising:
geometry processing logic configured to: receive geometry data for a render, the geometry data comprising a plurality of primitives each associated with one or more vertex shader programs;
and process the geometry data using the one or more vertex shader programs to generate one or more processed primitives;
a tiling unit configured to determine which of the processed primitives are located within each tile;
a data characterisation unit configured to, for at least one selected tile of the plurality of tiles, store in a memory i) a representation of per-tile vertex shader data identifying the one or more vertex shader programs used to generate the processed primitives located within that tile, and ii) a representation of per-tile render data that can be used to render the processed primitives within that tile in subsequent stages of the graphics pipeline; and
a testing unit configured to determine, for the at least one selected tile, whether the output of a previous render for that tile can be used as an output for the render by comparing the per-tile vertex shader data of that tile with that of the previous render before comparing the per-tile render data of that tile with that of the previous render.
