# US 2021/0287418 A1 · Graphics processing unit render mode selection system

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

- Number: US 2021/0287418 A1
- Document ID: US20210287418A1
- Status: Published application
- Kind: A1
- Application number: 17/008,292
- Filed: 2020-08-31
- Published: 2021-09-16
- Earliest claimed: 2020-03-10
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Anirudh R. ACHARYA; Ruijin WU; Young In YEO; Mika TUOMI; Kiia KALLIO
- Web page: https://patentgrep.com/patent/US20210287418A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- 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)
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 1/60: Memory management
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06F 9/4411: {Configuring for operating with peripheral devices; Loading of device drivers}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor dynamically selects a render mode for each render pass of a frame based on the characteristics of the render pass. A software driver of the processor receives graphics operations from an application executing at the processor and converts the graphics operations into a command stream that is provided to the graphics pipeline. As the driver converts the graphics operations into the command stream, the driver analyzes each render pass of the frame to determine characteristics of the render passes, and selects a render mode for each render pass based on the characteristics of the render pass.

## Claims

### Claim 1

A method comprising:
selecting, for each render pass of a plurality of render passes for a frame, a render mode of a plurality of render modes based on characteristics of the render pass; and
indicating to a graphics processing unit (GPU) of a processor the selected render mode for each render pass.

### Claim 2 (depends on 1)

The method of claim 1, wherein indicating comprises inserting a command indicating the selected render mode for a render pass into a command stream to the GPU.

### Claim 3 (depends on 1)

The method of claim 1, wherein indicating comprises inserting a start binning command indicating the selected render mode for a render pass into a command buffer corresponding to the render pass and an end binning command following a command stream for the render pass.

### Claim 4 (depends on 1)

The method of claim 1, wherein the characteristics of the render pass comprise at least one of: lighting, color, post-processing, occlusion query, whether a number of draw calls or primitives exceeds a threshold, use of unordered access views, and whether a number of render targets bound equals or exceeds a threshold.

### Claim 5 (depends on 4)

The method of claim 4, wherein the selected render mode comprises one of: coarse bin rendering, primitive batch-based bin rendering, coarse binning with batch-based bin rendering, and immediate-mode rendering.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
receiving an indication of an updated characteristic of the render pass; and
updating the selection of a render mode for a render pass for the frame in response to receiving an indication that the selected render mode is incompatible with the updated characteristic of the render pass.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
performing a render pass for a frame at the GPU using the selected render mode for the render pass.

### Claim 8

A method, comprising:
sorting a plurality of render passes for a frame into corresponding command buffers for a graphics processing unit (GPU) of a processor;
selecting a render mode of a plurality of render modes for each render pass based on characteristics of each render pass; and
indicating the selected render mode for each render pass at the command buffer corresponding to the render pass.

### Claim 9 (depends on 8)

The method of claim 8, wherein indicating comprises inserting a command indicating the selected render mode for a render pass into a command stream to the GPU.

### Claim 10 (depends on 8)

The method of claim 8, wherein the characteristics of the render pass comprise at least one of: lighting, color, post-processing, occlusion query, whether a number of draw calls or primitives exceeds a threshold, use of unordered access views, and whether a number of render targets bound equals or exceeds a threshold.

### Claim 11 (depends on 10)

The method of claim 10, wherein the selected render mode comprises one of: coarse bin rendering, primitive batch-based bin rendering, coarse binning with batch-based bin rendering, and immediate-mode rendering.

### Claim 12 (depends on 8)

The method of claim 8, wherein indicating comprises inserting a start binning command indicating the selected render mode for a render pass into a command buffer corresponding to the render pass and an end binning command following a command stream for the render pass.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
receiving an indication of an updated characteristic of the render pass; and
updating the selection of a render mode for a render pass for the frame in response to receiving an indication that the selected render mode is incompatible with the updated characteristic of the render pass.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
performing a render pass for a frame at the GPU using the selected render mode for the render pass.

### Claim 15

A non-transitory computer readable medium embodying a set of executable instructions, the set of executable instructions to manipulate at least one processor to:
select a render mode of a plurality of render modes for each render pass of a plurality of render passes for a frame based on characteristics of each render pass; and
indicate the selected render mode for each render pass to a graphics processing unit (GPU) configured to perform each render pass based on the indicated selected render mode for each render pass.

### Claim 16 (depends on 15)

The device of claim 15, wherein the set of executable instructions is to manipulate the at least one processor to:
indicate the selected render mode by inserting a start binning command indicating
the selected render mode for a render pass into a command buffer corresponding to the render pass and an end binning command following a command stream for the render pass.

### Claim 17 (depends on 15)

The device of claim 15, wherein the set of executable instructions is to manipulate the at least one processor to:
indicate the selected render mode by inserting a command indicating the selected render mode for a render pass into a command stream to the GPU.

### Claim 18 (depends on 15)

The device of claim 15, wherein the characteristics of the render pass comprise at least one of: lighting, color, post-processing, occlusion query, whether a number of draw calls or primitives exceeds a threshold, use of unordered access views, and whether a number of render targets bound equals or exceeds a threshold.

### Claim 19 (depends on 18)

The device of claim 18, wherein the selected render mode comprises one of: coarse bin rendering, primitive batch-based bin rendering, coarse binning with batch-based bin rendering, and immediate-mode rendering.

### Claim 20 (depends on 15)

The device of claim 15, wherein the set of executable instructions is to manipulate the at least one processor to:
receive an indication of an updated characteristic of the render pass; and
update the selection of a render mode for a render pass for the frame in response to receiving an indication that the selected render mode is incompatible with the updated characteristic of the render pass.
