# US 2022/0284539 A1 · Method and apparatus for efficient loop processing in a graphics hardware front end

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

- Number: US 2022/0284539 A1
- Document ID: US20220284539A1
- Status: Published application
- Kind: A1
- Application number: 17/578,125
- Filed: 2022-01-18
- Published: 2022-09-08
- Earliest claimed: 2017-08-29
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Hema Chand NALLURI; Balaji VEMBU; Peter DOYLE; Michael APODACA
- Web page: https://patentgrep.com/patent/US20220284539A1

## CPC

- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 15/005: {General purpose rendering architectures}
- G06T 2200/28: involving image processing hardware
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Various embodiments enable loop processing in a command processing block of the graphics hardware. Such hardware may include a processor including a command buffer, and a graphics command parser. The graphics command parser to load graphics commands from the command buffer, parse a first graphics command, store a loop count value associated with the first graphics command, parse a second graphics command and store a loop wrap address based on the second graphics command. The graphics command parser may execute a command sequence identified by the second graphics command, parse a third graphics command, the third graphics command identifying an end of the command sequence, set a new loop count value, and iteratively execute the command sequence using the loop wrap address based on the new loop count value.

## Claims

### Claim 1

(canceled)

### Claim 2

An apparatus comprising:
a memory; and
a graphics processing unit to execution graphics commands loaded from the memory, the execution comprising:
parsing a first graphics command from the graphics commands, the first graphics command identifying a loop wrap address;
executing a command sequence based on the first graphics command;
parsing a second graphics command, the second graphics command identifying an end of the command sequence;
setting a loop count value upon the second graphics command being parsed;
iteratively executing the command sequence using the loop wrap address based on the loop count value.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the loop wrap address is to be stored in a hardware stack.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the loop count value is stored in the hardware stack.

### Claim 5 (depends on 3)

The apparatus of claim 3, wherein one or more entries including the loop wrap address and loop count value in the hardware stack are cached in an on-die storage of the apparatus.

### Claim 6 (depends on 3)

The apparatus of claim 3, wherein the command sequence includes at least one nested loop, and wherein the hardware stack stores another loop wrap address for the at least one nested loop.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the another loop wrap address for the at least one nested loop is stored in an entry on top of an corresponding entry for the loop wrap address in the hardware stack.

### Claim 8 (depends on 2)

The apparatus of claim 2, wherein the loop count value prior to the second graphics command being parsed is stored in the memory, and wherein the stored loop count value is based on parsing another graphics command loaded from the memory prior to parsing the first graphics command.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein setting the loop count value comprises decrementing the stored loop count value.

### Claim 10 (depends on 2)

The apparatus of claim 2, wherein at least one command in the command sequence includes indirect data, and wherein the indirect data for the at least one command is determined based on a loop variable.

### Claim 11

A method comprising:
loading graphics commands from a memory of an apparatus;
executing the graphics commands loaded from the memory, the execution comprising:
parsing a first graphics command from the graphics commands, the first graphics command identifying a loop wrap address;
executing a command sequence based on the first graphics command;
parsing a second graphics command, the second graphics command identifying an end of the command sequence;
setting a loop count value upon the second graphics command being parsed;
iteratively executing the command sequence using the loop wrap address based on the loop count value.

### Claim 12 (depends on 11)

The method of claim 11, wherein the loop wrap address is to be stored in a hardware stack.

### Claim 13 (depends on 12)

The method of claim 12, wherein the loop count value is stored in the hardware stack.

### Claim 14 (depends on 12)

The method of claim 12, wherein one or more entries including the loop wrap address and loop count value in the hardware stack are cached in an on-die storage of the apparatus.

### Claim 15 (depends on 12)

The method of claim 12, wherein the command sequence includes at least one nested loop, and wherein the hardware stack stores another loop wrap address for the at least one nested loop.

### Claim 16 (depends on 15)

The method of claim 15, wherein the another loop wrap address for the at least one nested loop is stored in an entry on top of an corresponding entry for the loop wrap address in the hardware stack.

### Claim 17 (depends on 12)

The method of claim 12, wherein the loop count value prior to the second graphics command being parsed is stored in the memory, and wherein the stored loop count value is based on parsing another graphics command loaded from the memory prior to parsing the first graphics command.

### Claim 18 (depends on 12)

The method of claim 12, wherein at least one command in the command sequence includes indirect data, and wherein the indirect data for the at least one command is determined based on a loop variable.

### Claim 19

A non-transitory machine-readable storage medium storing instructions, which when executed by a machine, are capable of causing the machine to perform:
loading graphics commands from a memory of an apparatus;
executing the graphics commands loaded from the memory, the execution comprising:
parsing a first graphics command from the graphics commands, the first graphics command identifying a loop wrap address;
executing a command sequence based on the first graphics command;
parsing a second graphics command, the second graphics command identifying an end of the command sequence;
setting a loop count value upon the second graphics command being parsed;
iteratively executing the command sequence using the loop wrap address based on the loop count value.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the loop wrap address is to be stored in a hardware stack.

### Claim 21 (depends on 20)

The non-transitory machine-readable storage medium of claim 20, wherein the loop count value is stored in the hardware stack.
