# US 2024/0005602 A1 · Pipeline delay reduction for coarse visibility compression

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

- Number: US 2024/0005602 A1
- Document ID: US20240005602A1
- Status: Published application
- Kind: A1
- Application number: 17/855,268
- Filed: 2022-06-30
- Published: 2024-01-04
- Earliest claimed: 2022-06-30
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Kiia Kallio; Anton Palm
- Web page: https://patentgrep.com/patent/US20240005602A1

## CPC

- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- G06T 1/60: Memory management
- G06T 9/001: {Model-based coding, e.g. wire frame}
- G06T 15/005: {General purpose rendering architectures}
- G06T 15/40: Hidden part removal
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A processing system divides an image to be rendered into one or more tiles and performs a visibility pass on the primitives of the image. During the visibility pass, the processing system generates visibility data for each primitive of a draw call of the image based on a visible primitive count and a visible draw call count. In response to a primitive of the draw call being visible in the first tile, the processing system increments the visible primitive count and generates visibility data indicating that the primitives of the draw call are to be rendered using draw call index data stored in an on-chip memory. If the primitive is the first visible primitive of the draw call, the processing system further increments the visible draw call count. Additionally, the processing system renders the primitives of the draw call using the draw call index data stored in the on-chip memory.

## Claims

### Claim 1

A method comprising:
performing, based on a command stream indicating a plurality of primitives, a visibility pass for an image to determine a visible primitive in a first tile of the image from the plurality of primitives; and
rendering the visible primitive based on a comparison of a visible primitive count to a binning threshold.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
in response to determining the visible primitive in the first tile, incrementing the visible primitive count.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
in response to the visible primitive count being less than the binning threshold, generating visibility data indicating the visible primitive is to be rendered using draw call index data stored in an on-chip memory.

### Claim 4 (depends on 3)

The method of claim 3, wherein the visible primitive is rendered using the draw call index data concurrently with the visibility pass being performed for the image.

### Claim 5 (depends on 1)

The method of claim 1 further comprising:
in response to the visible primitive count being equal to or greater than the binning threshold, generating visibility data indicating vertex data of the visible primitive.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
compressing the visibility data; and
storing the compressed visibility data in a buffer associated with the first tile.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
flushing the compressed visibility data from the buffer, wherein the visible primitive is rendered using the flushed visibility data.

### Claim 8

A method comprising:
in response to determining a primitive indicated in a command stream is visible in a first tile of an image, generating visibility data for the primitive based on a visible draw call count; and
rendering the primitive based on the visibility data.

### Claim 9 (depends on 8)

The method of claim 8, wherein generating the visibility data comprises:
in response to the visible draw count being less than a first binning threshold, generating visibility data indicating the primitive is to be rendered using draw call index data stored in an on-chip memory.

### Claim 10 (depends on 9)

The method of claim 9, wherein the primitive is rendered using the draw call index data concurrently with a visibility pass for the image.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
in response to the primitive being a first visible primitive of a draw call, incrementing the visible draw call count.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
in response to the visible draw call being equal to or greater than a first binning threshold, generating visibility data indicating vertex data of the primitive.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
compressing the visibility data; and
storing the compressed visibility data in a buffer associated with the first tile.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
flushing the compressed visibility data from the buffer into a memory, wherein the primitive is rendered using the flushed visibility data.

### Claim 15

A processor, comprising:
one or more processing units including circuitry configured to:
perform a visibility pass for an image based on a command stream indicating a plurality of primitives to determine a visible primitive in a first tile from the plurality of primitives; and
render the visible primitive based on a comparison of a visible primitive count to a binning threshold.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the visible primitive is rendered further based on a comparison of a visible draw call count to a second binning threshold.

### Claim 17 (depends on 15)

The processor of claim 15, wherein the one or more processing units include circuitry configured to:
in response to the visible primitive count being less than the binning threshold, generate visibility data indicating the visible primitive is to be rendered using draw call index data stored in an on-chip memory.

### Claim 18 (depends on 17)

The processor of claim 17, wherein the visible primitive is rendered using the draw call index data concurrently with the visibility pass for the image.

### Claim 19 (depends on 15)

The processor of claim 15, wherein the one or more processing units include circuitry configured to:
in response to the visible primitive count being equal to or greater than the binning threshold, generate visibility data indicating vertex data of the visible primitive.

### Claim 20 (depends on 19)

The processor of claim 19, wherein the one or more processing units include circuitry configured to:
compress the visibility data;
store the compressed visibility data in a buffer associated with the first tile; and
flush the compressed visibility data from the buffer, wherein the visible primitive is rendered using the flushed visibility data.
