# US 2024/0005601 A1 · Hierarchical depth data generation using primitive fusion

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

- Number: US 2024/0005601 A1
- Document ID: US20240005601A1
- Status: Published application
- Kind: A1
- Application number: 17/853,136
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Kiia K. Kallio; Jan Achrenius
- Web page: https://patentgrep.com/patent/US20240005601A1

## CPC

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

## Abstract

Concurrently with performing a visibility pass to generate visibility data for two or more bins of an image, a processing system determines whether a primitive to be rendered covers at least a predetermined threshold percentage of a tile of the image. In response to the primitive coving at least the predetermined threshold percentage of the tile, the processing system stores the depth data of the primitive in a depth buffer for pixel-based rendering. In response to the primitive not covering at least the predetermined threshold percentage of the tile, the processing system fuses the primitive with one or more preceding primitives sharing an edge with the primitive in the tile to generate a fused primitive. In response to the fused primitive being valid in the tile, the processing system passes the depth data of the fused primitive to the depth buffer.

## Claims

### Claim 1

A method comprising:
in response to receiving a request to render a plurality of primitives for an image, fusing at least a portion of a first primitive of the plurality of primitives in a tile of the image with at least a portion of a second primitive of the plurality of primitives in the tile of the image to generate a fused primitive;
in response to the fused primitive being valid in the tile, storing depth data of the fused primitive in the tile in a depth buffer; and
rendering the first and second primitives using the depth data of the fused primitive stored in the depth buffer.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
determining one or more shared edges between primitives of the plurality of primitives, wherein the at least a portion of the first primitive in the tile is fused with the at least a portion of the second primitive in the tile based on the determined one or more shared edges.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining if the second primitive has a shared edge with a third primitive of the plurality of primitives in the tile; and
in response to determining the second primitive has a shared edge with the third primitive in the tile, storing depth data of the fused primitive in the tile in an edge buffer.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
fusing at least a portion of the third primitive in the tile with the depth data of the fused primitive in the tile stored in the edge buffer to generate a second fused primitive; and
determining whether the second fused primitive is valid in the tile.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
in response to determining the second fused primitive is valid in the tile, storing depth data of the second fused primitive in the depth buffer; and
rendering the first, second, and third primitives using the depth data of the second fused primitive stored in the depth buffer.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
in response to determining the first primitive does not cover at least a predetermined threshold percentage of the tile, determining whether the first primitive shares an edge with the second primitive in the tile; and
in response to the first primitive sharing an edge with the second primitive in the tile, storing depth data of the first primitive in the tile in an edge buffer.

### Claim 7 (depends on 6)

The method of claim 6, wherein fusing the at least a portion of the first primitive in the tile with at least a portion of the second primitive in the tile comprises fusing the depth data of the first primitive in the tile stored in the edge buffer with the at least a portion of the second primitive in the tile.

### Claim 8 (depends on 1)

The method of claim 1, wherein fusing the at least a portion of the first primitive of the plurality of primitives in the tile of the image with the at least a portion of the second primitive of the plurality of primitives in the tile of the image is performed concurrently with a visibility pass.

### Claim 9

A method comprising:
in response to a primitive of a plurality of primitives of an image to be rendered not covering a predetermined threshold percentage of a tile, determining if the primitive shares an edge with a second primitive of the plurality of primitives in the tile; and
in response to determining the primitive shares an edge with the second primitive in the tile:
fusing at least a portion of the primitive in the tile with at least a portion of the second primitive in the tile to generate a fused primitive; and
storing depth data of the fused primitive in the tile to a depth buffer used to render the primitive and the second primitive.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
determining one or more shared edges between primitives in the plurality of primitives.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
determining if the primitive shares an edge with a third primitive of the plurality of primitives; and
in response to determining the primitive shares an edge with the third primitive, storing depth data of the primitive in the tile in an edge buffer.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
fusing at least a portion of the third primitive in the tile with the depth data of the primitive in the tile stored in the edge buffer to generate a second fused primitive; and
determining if the second fused primitive is valid in the tile.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
determining if the third primitive shares an edge with a fourth primitive of the plurality of primitives.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
in response to the third primitive sharing an edge with the fourth primitive, storing the depth data of the second fused primitive in the edge buffer.

### Claim 15

An accelerated processing unit, comprising:
one or more processor cores including circuitry configured to:
in response to receiving a request to render a plurality of primitives for an image, fuse at least a portion of a first primitive of the plurality of primitives in a tile of the image with at least a portion of a second primitive of the plurality of primitives in the tile of the image to generate a fused primitive;
in response to the fused primitive being valid in the tile, store depth data of the fused primitive in the tile in a depth buffer; and
render the first and second primitives using the depth data of the fused primitive stored in the depth buffer.

### Claim 16 (depends on 15)

The accelerated processing unit of claim 15, wherein the one or more processor cores include circuitry configured to
determine if the second primitive has a shared edge with a third primitive of the plurality of primitives in the tile; and
in response to the second primitive having a shared edge with the third primitive in the tile, store depth data of the fused primitive in the tile in an edge buffer.

### Claim 17 (depends on 16)

The accelerated processing unit of claim 16, wherein the one or more processor cores include circuitry configured to:
fuse at least a portion of the third primitive in the tile with the depth data of the fused primitive in the tile stored in the edge buffer to generate a second fused primitive; and
determine whether the second fused primitive is valid in the tile.

### Claim 18 (depends on 17)

The accelerated processing unit of claim 17, wherein the one or more processor cores include circuitry configured to:
in response to the second fused primitive being valid in the tile, store depth data of the second fused primitive in the depth buffer; and
render the first, second, and third primitives using the depth data of the second fused primitive stored in the depth buffer.

### Claim 19 (depends on 15)

The accelerated processing unit of claim 15, wherein the one or more processor cores include circuitry configured to:
in response to the first primitive not covering at least a predetermined threshold percentage of the tile, determine whether the first primitive shares an edge with the second primitive in the tile; and
in response to the first primitive sharing an edge with the second primitive in the tile, store depth data of the first primitive in the tile in an edge buffer.

### Claim 20 (depends on 15)

The accelerated processing unit of claim 15, wherein the one or more processor cores include circuitry configured to:
fuse the at least a portion of the first primitive of the plurality of primitives in the tile of the image with the at least a portion of the second primitive of the plurality of primitives in the tile of the image concurrently with performing a visibility pass.
